[sync] post updated

This commit is contained in:
tmshv committed 2016-09-14 02:11:37 +03:00
1 parent 3217a27bb8
commit 10dd3d6316
7 files changed
+141 -150

No files matched your search

+8
View File
@@ -69,3 +69,11 @@ def scan_subdirs(provider, ext, path='.'):
def get_data(provider, path, transform):
data = provider.read(path)
return transform(data)
def list_images(provider, path):
image_types = ['.jpg', '.JPG', '.png', '.PNG']
return combine(lmap(
lambda ext: provider.type_filter(path, ext),
image_types
))