diff options
author | ahernandez.miralles@gmail.com <ahernandez.miralles@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-07 22:05:04 +0000 |
---|---|---|
committer | ahernandez.miralles@gmail.com <ahernandez.miralles@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-07 22:05:04 +0000 |
commit | 1d0e548a86cae4b6274fe9eef38b96a8e49aa12a (patch) | |
tree | b27dc9eb3319da3c9eaa93bb30493b6a6f63aac5 /chrome/common/extensions/docs/server2/caching_file_system.py | |
parent | 177489835f6e988ff03548e579b50013785007e5 (diff) | |
download | chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.zip chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.tar.gz chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.tar.bz2 |
Docserver: Factor SamplesModel out of SamplesDataSource
BUG=275039
NOTRY=True
Review URL: https://codereview.chromium.org/437323003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/server2/caching_file_system.py')
-rw-r--r-- | chrome/common/extensions/docs/server2/caching_file_system.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/server2/caching_file_system.py b/chrome/common/extensions/docs/server2/caching_file_system.py index c0ff5d0..15a81a36 100644 --- a/chrome/common/extensions/docs/server2/caching_file_system.py +++ b/chrome/common/extensions/docs/server2/caching_file_system.py @@ -7,7 +7,7 @@ import sys from file_system import FileSystem, StatInfo, FileNotFoundError from future import Future -from path_util import IsDirectory +from path_util import IsDirectory, ToDirectory from third_party.json_schema_compiler.memoize import memoize @@ -43,8 +43,7 @@ class CachingFileSystem(FileSystem): # Always stat the parent directory, since it will have the stat of the child # anyway, and this gives us an entire directory's stat info at once. dir_path, file_path = posixpath.split(path) - if dir_path and not dir_path.endswith('/'): - dir_path += '/' + dir_path = ToDirectory(dir_path) def make_stat_info(dir_stat): '''Converts a dir stat into the correct resulting StatInfo; if the Stat |