summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/server2/chained_compiled_file_system.py')
-rw-r--r--chrome/common/extensions/docs/server2/chained_compiled_file_system.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/server2/chained_compiled_file_system.py b/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
index 6fbd31e..74e2a59 100644
--- a/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
+++ b/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
@@ -6,6 +6,7 @@ from compiled_file_system import CompiledFileSystem
from docs_server_utils import StringIdentity
from file_system import FileNotFoundError
from future import Future
+from path_util import ToDirectory
class ChainedCompiledFileSystem(object):
@@ -52,8 +53,7 @@ class ChainedCompiledFileSystem(object):
lambda compiled_fs: compiled_fs.GetFileVersion(path))
def GetFromFileListing(self, path):
- if not path.endswith('/'):
- path += '/'
+ path = ToDirectory(path)
return self._GetImpl(
path,
lambda compiled_fs: compiled_fs.GetFromFileListing(path),