2015-01-05 22:58:30 +00:00
|
|
|
package embedded_filer
|
|
|
|
|
|
|
|
import (
|
2016-06-03 01:09:14 +00:00
|
|
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
2015-01-05 22:58:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
2015-01-05 22:58:30 +00:00
|
|
|
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)
|
2015-01-05 22:58:30 +00:00
|
|
|
}
|