Add sync function to FSBase, and implementations to fslocal and fsmongo
[osm/common.git] / osm_common / fsbase.py
index 87d974d..7e69613 100644 (file)
@@ -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,6 @@ class FsBase(object):
 
     def file_delete(self, storage, ignore_non_exist=False):
         raise FsException("Method 'file_delete' not implemented")
+
+    def sync(self):
+        raise FsException("Method 'sync' not implemented")