I've encountered a really weird problem on a NAS volume I'm accessing on OS X. I have a PNG file that I tried to delete, but something went wrong and it still appears when I run ls
or view the directory in Finder (icon is blank, though). Here's where it gets freaky:
Running plain
ls
lists the file along with everything that does exist, no problem. Same thing withls -a
,-h
, or-w
.If I run
ls
with-l
or-i
, or try torm
ormv
the file, I get the error "No such file or directory
" instead of output. Everything else that should show up does.Running
ls -s
prints0 3-keys-to-manifestation-og.png
So I've got a file with zero size, that I cannot delete or rename. There is no issue with special characters in the filename, as was suggested with similar problems.
Any ideas about what happened, and how I can get rid of this thing?
ls | hexdump -C
?stat
the file?find . -maxdepth 1 -name '*3-keys-to-manifestation-og.png*' -delete
helps.