aboutsummaryrefslogtreecommitdiff
path: root/go/filer/directory.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/filer/directory.go')
-rw-r--r--go/filer/directory.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/go/filer/directory.go b/go/filer/directory.go
new file mode 100644
index 000000000..2eefed9c1
--- /dev/null
+++ b/go/filer/directory.go
@@ -0,0 +1,18 @@
+package filer
+
+import ()
+
+type DirectoryId int32
+
+type DirectoryEntry struct {
+ Name string //dir name without path
+ Id DirectoryId
+}
+
+type DirectoryManager interface {
+ FindDirectory(dirPath string) (DirectoryId, error)
+ ListDirectories(dirPath string) (dirNames []DirectoryEntry, err error)
+ MakeDirectory(currentDirPath string, dirName string) (DirectoryId, error)
+ MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
+ DeleteDirectory(dirPath string) error
+}