mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 06:27:11 +08:00
crypt: fix Mkdir/Rmdir with a dir parameter - fixes rmdirs command
This commit is contained in:
parent
dd99a4b3dc
commit
cb9f1eefd2
|
@ -152,6 +152,20 @@ func (f *Fs) Hashes() fs.HashSet {
|
|||
return fs.HashSet(fs.HashNone)
|
||||
}
|
||||
|
||||
// Mkdir makes the directory (container, bucket)
|
||||
//
|
||||
// Shouldn't return an error if it already exists
|
||||
func (f *Fs) Mkdir(dir string) error {
|
||||
return f.Fs.Mkdir(f.cipher.EncryptDirName(dir))
|
||||
}
|
||||
|
||||
// Rmdir removes the directory (container, bucket) if empty
|
||||
//
|
||||
// Return an error if it doesn't exist or isn't empty
|
||||
func (f *Fs) Rmdir(dir string) error {
|
||||
return f.Fs.Rmdir(f.cipher.EncryptDirName(dir))
|
||||
}
|
||||
|
||||
// Purge all files in the root and the root directory
|
||||
//
|
||||
// Implement this if you have a way of deleting all the files
|
||||
|
|
Loading…
Reference in New Issue
Block a user