Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5494)

Unified Diff: chrome/common/extensions/docs/server2/local_file_system.py

Issue 10800047: Extension Docs Server Version 2: Various fixes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ok now it should work Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/local_file_system.py
diff --git a/chrome/common/extensions/docs/server2/local_file_system.py b/chrome/common/extensions/docs/server2/local_file_system.py
index 39b6360bbaeb177b26e949b3d4e1595cf7f9f7d0..fac66601f7dd120f3b1f393fd8cf7e288671f7f4 100644
--- a/chrome/common/extensions/docs/server2/local_file_system.py
+++ b/chrome/common/extensions/docs/server2/local_file_system.py
@@ -25,6 +25,8 @@ class LocalFileSystem(FileSystem):
all_files = []
full_path = os.path.join(self._base_path, dir_name)
for path in os.listdir(full_path):
+ if path.startswith('.'):
+ continue
if os.path.isdir(os.path.join(full_path, path)):
all_files.append(path + '/')
else:

Powered by Google App Engine
This is Rietveld 408576698