[sync] updated: config based; async loop; Documents adopted to new system

This commit is contained in:
Roman Timashev committed 2017-09-10 22:12:09 +03:00
1 parent b0b518fd8c
commit 06965bebee
23 files changed
+1078 -346

No files matched your search

+3 -7
View File
@@ -13,13 +13,9 @@ class FSProvider(Provider):
return open(self.get_abs(path), 'rb')
def scan(self, path):
return lmap(
self.get_rel,
map(
lambda i: i.path,
os.scandir(self.get_abs(path))
)
)
paths = [i.path for i in os.scandir(self.get_abs(path))]
return [self.get_rel(path) for path in paths]
def glob(self, pattr):
return lmap(self.get_rel, glob(self.get_abs(pattr)))