Chris Lu
10 years ago
8 changed files with 53 additions and 43 deletions
-
18go/filer/directory.go
-
15go/filer/embedded_filer/directory.go
-
19go/filer/embedded_filer/directory_in_map.go
-
2go/filer/embedded_filer/directory_test.go
-
9go/filer/embedded_filer/filer_embedded.go
-
15go/filer/embedded_filer/files_in_leveldb.go
-
15go/filer/filer.go
-
3go/weed/weed_server/filer_server.go
@ -1,18 +0,0 @@ |
|||
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) |
|||
} |
@ -0,0 +1,15 @@ |
|||
package embedded_filer |
|||
|
|||
import ( |
|||
"github.com/chrislusf/weed-fs/go/filer" |
|||
) |
|||
|
|||
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) |
|||
} |
@ -1,4 +1,4 @@ |
|||
package filer |
|||
package embedded_filer |
|||
|
|||
import ( |
|||
"os" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue