filter self.sync_alphabetically for allowed file extentions

This commit is contained in:
Pratik Vyas 2014-04-22 13:45:29 +05:30
parent 11f1b3f00d
commit 8f668eba00

View file

@ -48,7 +48,7 @@ class sync(object):
self.sync_using_given_index(basepath, folders, files)
else:
self.sync_alphabetically(basepath, folders, files)
self.sync_alphabetically(basepath, folders, [filename for filename in files if filename.endswith('html') or filename.endswith('md')])
def get_index_txt(self, basepath, files):