diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-04-17 22:33:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-04-17 22:33:21 -0700 |
| commit | 83c0c9843d03a2929258f5f90056d025b941bf4d (patch) | |
| tree | 8cd28cdf10574c71890abb8c219f85022d4aca43 /go/filer/filer.go | |
| parent | e378f9892d1535702c49cb145f6fc06c561acef0 (diff) | |
| download | seaweedfs-83c0c9843d03a2929258f5f90056d025b941bf4d.tar.xz seaweedfs-83c0c9843d03a2929258f5f90056d025b941bf4d.zip | |
Add option to recursively delete a folder.
Diffstat (limited to 'go/filer/filer.go')
| -rw-r--r-- | go/filer/filer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/filer/filer.go b/go/filer/filer.go index e91218afb..a42d9ed8c 100644 --- a/go/filer/filer.go +++ b/go/filer/filer.go @@ -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) } |
