-
- Downloads
Add support for browsing empty directories
Turns out that being able to open an empty directory actually has its uses: - If you delete the last file in a directory, you now won't be directed to the parent directory anymore. This allows keeping 'd' pressed without worrying that you'll delete stuff outside of the current dir. (This is the primary motivation for doing this) - You can now scan and later refresh an empty directory, as suggested by #2 in http://dev.yorhel.nl/ncdu/bug/15
Showing
- src/browser.c 12 additions, 12 deletionssrc/browser.c
- src/delete.c 8 additions, 6 deletionssrc/delete.c
- src/dir_import.c 0 additions, 2 deletionssrc/dir_import.c
- src/dir_mem.c 1 addition, 1 deletionsrc/dir_mem.c
- src/dir_scan.c 0 additions, 6 deletionssrc/dir_scan.c
- src/dirlist.c 12 additions, 7 deletionssrc/dirlist.c
- src/dirlist.h 3 additions, 0 deletionssrc/dirlist.h
Please register or sign in to comment