mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
19 lines
531 B
Go
19 lines
531 B
Go
package filer
|
|
|
|
type DirectoryId int32
|
|
|
|
type DirectoryEntry struct {
|
|
Name string //dir name without path
|
|
Id DirectoryId
|
|
}
|
|
|
|
type DirectoryManager interface {
|
|
FindDirectory(dirPath string) (DirectoryId, error)
|
|
ListDirectories(dirPath string) (dirs []DirectoryEntry, err error)
|
|
MakeDirectory(currentDirPath string, dirName string) (DirectoryId, error)
|
|
MoveUnderDirectory(oldDirPath string, newParentDirPath string) error
|
|
DeleteDirectory(dirPath string) error
|
|
//functions used by FUSE
|
|
FindDirectoryById(DirectoryId, error)
|
|
}
|