sync update: moving to ./sync.py as entry point

This commit is contained in:
tmshv committed 2016-08-05 17:54:00 +03:00
1 parent 6f144fb6de
commit 13a3a02613
8 files changed
+456 -83

No files matched your search

+11 -3
View File
@@ -1,4 +1,5 @@
import os
from io import BytesIO
class Provider:
@@ -6,8 +7,8 @@ class Provider:
super().__init__()
self.root = root
def open(self, path, mode):
return ''
def read(self, path):
return BytesIO(bytes())
def scan(self, path):
return []
@@ -15,6 +16,9 @@ class Provider:
def glob(self, pattr):
return []
def type_filter(self, path, ext):
return []
def copy(self, path, out):
pass
@@ -29,4 +33,8 @@ class Provider:
return os.path.normpath(abs)
def get_rel(self, path):
return os.path.relpath(path, self.root)
rel = os.path.relpath(path, self.root)
return rel
def is_dir(self, path):
return False