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
531 B

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