[sync] updated: + albums, kazimir rendering, other changes
This commit is contained in:
1 parent
2ea3c1f322
commit
dc8363ee84
18 files changed
+331
-410
No files matched your search
@@ -30,6 +30,9 @@ class Provider:
|
||||
def size(self, path):
|
||||
return 0
|
||||
|
||||
def exists(self, path):
|
||||
return True
|
||||
|
||||
def get_abs(self, path):
|
||||
a = os.path.join(self.root, path)
|
||||
return os.path.normpath(a)
|
||||
|
||||
@@ -41,6 +41,10 @@ class FSProvider(Provider):
|
||||
file = self.get_abs(path)
|
||||
return os.path.getsize(file)
|
||||
|
||||
def exists(self, path):
|
||||
file = self.get_abs(path)
|
||||
return os.path.exists(file)
|
||||
|
||||
def is_dir(self, path):
|
||||
return os.path.isdir(self.get_abs(path))
|
||||
|
||||
|
||||
Reference in new issue
Block a user