You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
481 B

  1. package filer
  2. import ()
  3. type DirectoryId int32
  4. type DirectoryEntry struct {
  5. Name string //dir name without path
  6. Id DirectoryId
  7. }
  8. type DirectoryManager interface {
  9. FindDirectory(dirPath string) (DirectoryId, error)
  10. ListDirectories(dirPath string) (dirNames []DirectoryEntry, err error)
  11. MakeDirectory(currentDirPath string, dirName string) (DirectoryId, error)
  12. MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
  13. DeleteDirectory(dirPath string) error
  14. }