seaweedfs/weed/filer/embedded_filer/directory.go

16 lines
491 B
Go
Raw Permalink Normal View History

package embedded_filer
import (
"github.com/chrislusf/seaweedfs/weed/filer"
)
type DirectoryManager interface {
2018-05-05 09:01:50 +00:00
FindDirectory(dirPath string) (DirectoryId, error)
ListDirectories(dirPath string) (dirs []filer.DirectoryName, err error)
MakeDirectory(currentDirPath string, dirName string) (DirectoryId, error)
MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
DeleteDirectory(dirPath string) error
//functions used by FUSE
2018-05-05 09:01:50 +00:00
FindDirectoryById(DirectoryId, error)
}