20021111 Monday November 11, 2002

Can't get rid of folders I'm having the same problem on Windows XP that I am on my Mac. On the Mac, I have a folder ASD in my Trash that won't delete. When I try to Empty Trash from the Dock, I get an error stating that the item "ASD" is in use. When I look at the folder and try to remove stuff, nothing is there:

[minime:~] matt% rm -r .Trash/*
rm: .Trash/ASD: Directory not empty
[minime:~] matt% rm -r .Trash/ASD/*
rm: No match.

On XP, I have a similar issue. There is a found.000 folder on my C: drive. In this folder, there is a hidden folder (or at least it has a folder icon) named file0009.chk. When I try to delete it, I get the following error:

Cannot delete file0009.chk: The file or directory is corrupted and unreadable.

Both of these have been bugging me for quite some time - hopefully I can put the comments feature to work for me now! Posted in General at Nov 11 2002, 08:07:04 PM MST 3 Comments

Comments:

For your Mac problem you could try booting into OS 9 and deleting that file on your OS partition/folder. There might be a simple utility floating around out there that will delete these type of ophaned folders under OS X.

Posted by Kurt Wiersma on November 12, 2002 at 04:53 AM MST #

Not sure how details work on the unix-ish OSX, but you might try to execute "find .Trash". This one should give you any files in .Trash and subfolders. The problem <em>might</em> be in "hidded" files with names starting in a dot (like .file). They're normally hidden from vanilla "ls" and shell expansion "echo *", although on my Linux box "rm -r" removes everything.

Another thing to check (if ASD is actually in use) might be having a look at "lsof" (list open files). I'm not sure if it's available for OSX, but there are good chances. Have a look at manpage to find out who/what is using the ASD directory.

Hope that help. I would have similar problems with files with Polish diacritical characters under Windows at the office, and I absolutely dred the idea of files I simply can't remove :)

I see HTML works in comments now; well, what superb level of support :)

Posted by Greg Klebus on November 12, 2002 at 08:56 AM MST #

I am having the same problem with OS X, I cant delete 1 of my folders. Did you manage to find a solution ? Thanks

Posted by G on January 21, 2003 at 12:49 PM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« December 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

Recent Entries

Tag Cloud