mananapr / cfiles

A ncurses file manager written in C with vim like keybindings
MIT License
482 stars 34 forks source link

Unable to delete folder with same name of a file in trash #65

Closed pedro-hs closed 3 years ago

pedro-hs commented 3 years ago

When select a folder (press space) and delete (press dd) if in trash exist a file with the same name of the folder, the mv return error

Example: Create a text file with name exe in Trash/files Create a folder with the same name in another directory, open cfiles and delete the file via dd Mv return: mv: cannot overwrite non-directory '/home/pedro/.local/share/Trash/files/exe' with directory '/home/pedro/Documents/src/dotfiles/exe'