On Sun, 2014-06-08 at 10:44 +0200, Ralf Mardorf wrote: > On Sun, 2014-06-08 at 10:40 +0200, Ralf Mardorf wrote: > > That's strange, since "rmdir --ignore-fail-on-non-empty" seemingly > > shouldn't remove the directory. I wasn't aware about this, so I tested > > it, resp. compared it to "rm -r" [1]. > > > > Perhaps you should post the complete script, the culprit seems not to be > > "rmdir". > > > > [1] > > [rocketmouse@archlinux ~]$ touch ~/Desktop/test ~/Desktop/.test > > [rocketmouse@archlinux ~]$ ls -hAl Desktop > > total 0 > > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:33 test > > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:33 .test > > [rocketmouse@archlinux ~]$ rm -r ~/Desktop > > [rocketmouse@archlinux ~]$ ls -hAld Desktop > > ls: cannot access Desktop: No such file or directory > > [rocketmouse@archlinux ~]$ mkdir Desktop ; touch ~/Desktop/test > > ~/Desktop/.test > > [rocketmouse@archlinux ~]$ ls -hAl Desktop > > total 0 > > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:34 test > > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:34 .test > > [rocketmouse@archlinux ~]$ rmdir --ignore-fail-on-non-empty ~/Desktop > > [rocketmouse@archlinux ~]$ ls -hAld Desktop > > drwxr-xr-x 2 rocketmouse rocketmouse 4.0K Jun 8 10:34 Desktop > > PS: > > But rmdir doesn't remove "empty" the directory ;). > > [rocketmouse@archlinux ~]$ rmdir --ignore-fail-on-non-empty ~/Desktop > [rocketmouse@archlinux ~]$ ls -hAl ~/Desktop > total 0 > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:34 test > -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:34 .test
Oops, pardon you want to delete dirs inside the trash dir?! It doesn't work either [2]. Is this something that should work in combination with find? [2] [rocketmouse@archlinux ~]$ mkdir ~/Desktop/testdir ; touch ~/Desktop/testdir/test ~/Desktop/testdir/.test [rocketmouse@archlinux ~]$ ls -hAl ~/Desktop/testdir total 0 -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:50 test -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:50 .test [rocketmouse@archlinux ~]$ rmdir --ignore-fail-on-non-empty ~/Desktop/testdir [rocketmouse@archlinux ~]$ ls -hAl ~/Desktop/testdir total 0 -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:50 test -rw-r--r-- 1 rocketmouse rocketmouse 0 Jun 8 10:50 .test [rocketmouse@archlinux ~]$ ls -hAld ~/Desktop/testdir drwxr-xr-x 2 rocketmouse rocketmouse 4.0K Jun 8 10:50 /home/rocketmouse/Desktop/testdir -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1402217660.810.15.camel@archlinux