|
#1
| |||
| |||
| Trying to delete a folder
I have a NAS system at home and I created a folder using the Mac. The particulars for the folder are as follows: drwx------ 1 javier_s5 staff 16384 Dec 30 11:10 Picture_Frame_old The folder is empty, however when I try to delete the folder via the gui, I get a message that says the folder cannot be deleted because it is being used. Mind you I am not inside the folder at the time I try to delete the folder. I then start a terminal session and issue the following command: rmdir Picture_Frame_old/ rmdir: Picture_Frame_old/: Directory not empty As you can see, the error message states the directory is not empty, which I guess is true since there are the two normal links inside. Namely "., and ..". How can I delete the folder? I know it should not bother me since it is empty, but it is nagging me that I can't remove the directory. TIA Javier |
|
#2
| ||||
| ||||
|
Did you try "rm -R" ?
__________________ My current machine is an iMac Core 2 Duo 2.16 GHz 24" and a MacBook Pro 13" with MacOS X 10.6. My oldest Apple was born in 1977. GS/P/>SS d-(++) s+: a+ C+(C) U* P L+ E--- W++ N- o+ K? w O-- M++ V PS+ PE+ Y- PGP t+ 5 X+ R tv-- b+++ DI++ D+ G e+++ h---- r+++ y? Time is not changing, I'm just traveling through time. |
|
#3
| |||
| |||
|
Duh, what a dummy. I never even thought about that. Thanks that did the trick. I still don't know what was preventing me from deleting the folder in the first place since the folder appeared to be be empty. Regardless, thank you again for the advice. That did the trick.
|
|
#4
| |||
| |||
| Quote:
Anyway, obligatory word of caution for future users about the Code: rm Code: ls [filename] |
|
#5
| |||
| |||
| Empty folder
I believe the folder was empty as I did issue the 'ls -al' command and all that came back was '..' and '.'. I did not see the '.DS_STORE' file.
|
|
#6
| ||||
| ||||
| Quote:
Also you could download the freeware application TinkerTool and just put a check mark in the box to stop the DS_Store files on network volumes (there are kept invisible buy putting a period in from of the first letter. The DS_Store files are OS X's way of keeping Finder windows open in the way you want it look.
__________________ Mac Pro Dual 2.8 Quad (1st gen), 14G Ram, Two DVD-RW Drives, OS X 10.6.2 Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.6.2 2TB Time Capsule 32G iPhone 3GS Black |
![]() |
| Bookmarks |
| Thread Tools | |
|
|