aboutsummaryrefslogtreecommitdiff
path: root/go/filer/directory.go
blob: 66d1aeba58aea74aa4519b45e112cea91a519cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
}