2015-01-06 06:58:30 +08:00
|
|
|
package embedded_filer
|
|
|
|
|
|
|
|
import (
|
2016-06-03 09:09:14 +08:00
|
|
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
2015-01-06 06:58:30 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type DirectoryManager interface {
|
|
|
|
FindDirectory(dirPath string) (filer.DirectoryId, error)
|
|
|
|
ListDirectories(dirPath string) (dirs []filer.DirectoryEntry, err error)
|
|
|
|
MakeDirectory(currentDirPath string, dirName string) (filer.DirectoryId, error)
|
|
|
|
MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
|
|
|
|
DeleteDirectory(dirPath string) error
|
|
|
|
//functions used by FUSE
|
|
|
|
FindDirectoryById(filer.DirectoryId, error)
|
|
|
|
}
|