[sync] post updated
This commit is contained in:
1 parent
3217a27bb8
commit
10dd3d6316
7 files changed
+141
-150
No files matched your search
@@ -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
|
||||
))
|
||||
Reference in new issue
Block a user