directory.go 491 B

123456789101112131415
  1. package embedded_filer
  2. import (
  3. "github.com/chrislusf/seaweedfs/weed/filer"
  4. )
  5. type DirectoryManager interface {
  6. FindDirectory(dirPath string) (DirectoryId, error)
  7. ListDirectories(dirPath string) (dirs []filer.DirectoryName, err error)
  8. MakeDirectory(currentDirPath string, dirName string) (DirectoryId, error)
  9. MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
  10. DeleteDirectory(dirPath string) error
  11. //functions used by FUSE
  12. FindDirectoryById(DirectoryId, error)
  13. }