[sync] updated: + albums, kazimir rendering, other changes

This commit is contained in:
tmshv committed 2016-11-11 02:34:19 +03:00
1 parent 2ea3c1f322
commit dc8363ee84
18 files changed
+331 -410

No files matched your search

+3
View File
@@ -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)
+4
View File
@@ -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))