|
|
|
@ -29,16 +29,16 @@ func (filer *FlatNamespaceFiler) FindFile(fullFileName string) (fid string, err |
|
|
|
return filer.store.Get(fullFileName) |
|
|
|
} |
|
|
|
func (filer *FlatNamespaceFiler) FindDirectory(dirPath string) (dirId filer.DirectoryId, err error) { |
|
|
|
return filer.store.FindDirectory(dirPath) |
|
|
|
return 0, ErrNotImplemented |
|
|
|
} |
|
|
|
func (filer *FlatNamespaceFiler) ListDirectories(dirPath string) (dirs []filer.DirectoryEntry, err error) { |
|
|
|
return filer.store.ListDirectories(dirPath) |
|
|
|
return nil, ErrNotImplemented |
|
|
|
} |
|
|
|
func (filer *FlatNamespaceFiler) ListFiles(dirPath string, lastFileName string, limit int) (files []filer.FileEntry, err error) { |
|
|
|
return filer.store.ListFiles(dirPath, lastFileName, limit) |
|
|
|
return nil, ErrNotImplemented |
|
|
|
} |
|
|
|
func (filer *FlatNamespaceFiler) DeleteDirectory(dirPath string, recursive bool) (err error) { |
|
|
|
return filer.store.DeleteDirectory(dirPath, recursive) |
|
|
|
return ErrNotImplemented |
|
|
|
} |
|
|
|
|
|
|
|
func (filer *FlatNamespaceFiler) DeleteFile(fullFileName string) (fid string, err error) { |
|
|
|
@ -46,5 +46,5 @@ func (filer *FlatNamespaceFiler) DeleteFile(fullFileName string) (fid string, er |
|
|
|
} |
|
|
|
|
|
|
|
func (filer *FlatNamespaceFiler) Move(fromPath string, toPath string) error { |
|
|
|
return filer.store.Move(fromPath, toPath) |
|
|
|
return ErrNotImplemented |
|
|
|
} |