"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
ncdu: fix deleting files
Nick Craig-Wood369a8ee17b80
diff --git a/cmd/ncdu/ncdu.go b/cmd/ncdu/ncdu.goindex 90d37d3be..343647e41 100644--- a/cmd/ncdu/ncdu.go+++ b/cmd/ncdu/ncdu.go@@ -424,20 +424,13 @@ func (u *UI) removeEntry(pos int) {func (u *UI) delete() {dirPos := u.sortPerm[u.dirPosMap[u.path].entry]entry := u.entries[dirPos]-- file := false- d, _ := u.d.GetDir(dirPos)- if d == nil {- file = true- }-u.boxMenu = []string{"cancel", "confirm"}- if file {+ if obj, isFile := entry.(fs.Object); isFile {u.boxMenuHandler = func(f fs.Fs, p string, o int) (string, error) {if o != 1 {return "Aborted!", nil}- err := f.Rmdir(entry.String())+ err := operations.DeleteFile(obj)if err != nil {return "", err}