PDA

View Full Version : How to delete Finder file with no path?




NotVeryClever
May 30, 2013, 06:37 PM
I have some files that can be found by name and by content using Finder's command-F that I believe used to be associated with the adblockplus Firefox extension (AKA formerly system files in the Library folder).

These files do not have a file path, and I cannot open the enclosing folder etc. I don't actually care about using these files, I just want to delete them. However I cannot drag them to trash, nor can I delete them using command-delete. I cannot drag them into Terminal to find the file path or delete from within Terminal.

Does anyone have a suggestion for deleting these files?

OS X 10.8.1; screenshot is included.



GGJstudios
May 30, 2013, 06:47 PM
.ini files are Windows files, and have no effect on OS X. Try restarting your computer, then check to see if the files remain. It may be that they have already been deleted.

NotVeryClever
May 30, 2013, 06:54 PM
.ini files are Windows files, and have no effect on OS X. Try restarting your computer, then check to see if the files remain. It may be that they have already been deleted.

The file remains on restart. Perhaps it will go away with time, but it is not very satisfying that I cannot delete it. It is also confusing to me that the file and its content still remain and are searchable but it does not have a path...

GGJstudios
May 30, 2013, 06:57 PM
The file remains on restart. Perhaps it will go away with time, but it is not very satisfying that I cannot delete it. It is also confusing to me that the file and its content still remain and are searchable but it does not have a path...
What shows up in the Finder Status Bar or Path Bar if you click on one of those files?

simsaladimbamba
May 30, 2013, 06:59 PM
I have had a similar problem and PathFinder helped me solve it. Here (http://forums.macrumors.com/showthread.php?t=1555815) is the thread with the solution. Hopefully it helps.

And man, using a Windows based PC is horrible now. If it would be at least Windws 5.0 or 5.1, but no, it is 6.0.

GGJstudios
May 30, 2013, 07:05 PM
Another possibility is you may need to reindex your drive: Spotlight: How to re-index folders or volumes (http://support.apple.com/kb/ht2409) If that fails to index, enter the following command in Terminal: sudo mdutil -i on "/Volumes/your drive name"

NotVeryClever
May 30, 2013, 07:06 PM
What shows up in the Finder Status Bar or Path Bar if you click on one of those files?

I don't think it is letting me show the Path Bar? I am not sure I am doing what you suggested, but I have a screenshot.

Ah! but there is learning - if I open the file I get an error -- The alias "patterns.ini" can't be opened because the original item can't be found.

Delete alias just brings the same window up again. If I select "Fix Alias", set it to a random text file, I get another error. "The operation can't be completed." Error code -43

[edit -- added image]

NotVeryClever
May 30, 2013, 07:08 PM
Sorry, you guys are fast! I will try the above two tricks and update!

GGJstudios
May 30, 2013, 07:10 PM
I don't think it is letting me show the Path Bar? I am not sure I am doing what you suggested, but I have a screenshot.

Ah! but there is learning - if I open the file I get an error -- The alias "patterns.ini" can't be opened because the original item can't be found.
Yep, it looks like the item has been deleted. Try reindexing your drive, using the instructions in my last post.

w0lf
May 30, 2013, 07:10 PM
If you drag the file into terminal from finder does it give you a path?

NotVeryClever
May 30, 2013, 07:44 PM
If you drag the file into terminal from finder does it give you a path?

Finder will not let me drag the files! I can click on them and highlight them to get info, etc, but cannot drag them.

Still haven't tried other suggestions, looks hopeful though! And thanks to all for the help as well -- Will update but seems wise for me to finish my work and save everything first, will be a couple hours.

NotVeryClever
May 30, 2013, 10:51 PM
Reindexing the drive did the trick! The files are no longer turning up by name or content. Also an incredibly quick and easy solution. Thanks to GGJstudios! Followed protocol as described https://support.apple.com/kb/ht2409 -- dragged in whole volume.

Neat stuff!

chrfr
May 31, 2013, 06:58 AM
.ini files are Windows files, and have no effect on OS X.
This is not true. There are several apps for Mac which write data into .ini files. (Yes, developers probably shouldn't be doing this, but they do.)

GGJstudios
May 31, 2013, 07:14 AM
This is not true. There are several apps for Mac which write data into .ini files. (Yes, developers probably shouldn't be doing this, but they do.)
A 3rd party app writing data into an .ini file is quite different from such a file affecting OS X.

chrfr
May 31, 2013, 08:27 AM
A 3rd party app writing data into an .ini file is quite different from such a file affecting OS X.
Nonetheless, your advice made it sound as if deleting them will have no effect.

GGJstudios
May 31, 2013, 11:05 AM
Nonetheless, your advice made it sound as if deleting them will have no effect.
Actually, I was implying that leaving them will have no effect, but either is true. Whether they're deleted or not will have zero effect on OS X.