X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Ffsbase.py;h=219dbe158913ab8982edac82d5ff08845b4eef7f;hb=2644b76248a1b96f7a47013b414e31b4e3feecf8;hp=87d974d522c1568e43a2bbefaed61c855c1fc395;hpb=d4378aa85f33bffbf3ef303dbd66513562cbe8f2;p=osm%2Fcommon.git diff --git a/osm_common/fsbase.py b/osm_common/fsbase.py index 87d974d..219dbe1 100644 --- a/osm_common/fsbase.py +++ b/osm_common/fsbase.py @@ -31,7 +31,7 @@ class FsException(Exception): class FsBase(object): - def __init__(self, logger_name='fs', lock=False): + def __init__(self, logger_name="fs", lock=False): """ Constructor of FsBase :param logger_name: logging name @@ -65,6 +65,9 @@ class FsBase(object): def dir_rename(self, src, dst): raise FsException("Method 'dir_rename' not implemented") + def dir_ls(self, storage): + raise FsException("Method 'dir_ls' not implemented") + def file_exists(self, storage): raise FsException("Method 'file_exists' not implemented") @@ -79,3 +82,9 @@ class FsBase(object): def file_delete(self, storage, ignore_non_exist=False): raise FsException("Method 'file_delete' not implemented") + + def sync(self, from_path=None): + raise FsException("Method 'sync' not implemented") + + def reverse_sync(self, from_path): + raise FsException("Method 'reverse_sync' not implemented")