Add option to recursively delete a folder.

This commit is contained in:
Chris Lu
2014-04-17 22:33:21 -07:00
parent e378f9892d
commit 83c0c9843d
4 changed files with 47 additions and 8 deletions

View File

@@ -14,6 +14,6 @@ type Filer interface {
FindFile(filePath string) (fid string, err error)
ListDirectories(dirPath string) (dirs []DirectoryEntry, err error)
ListFiles(dirPath string, lastFileName string, limit int) (files []FileEntry, err error)
DeleteDirectory(dirPath string) (err error)
DeleteDirectory(dirPath string, recursive bool) (err error)
DeleteFile(filePath string) (fid string, err error)
}