Deleting Corrupt File
There's this .ePub file sitting on my external drive that I just can't delete. I've tried everything. It shows an error code -36 and is Zero KB. Does anybody know what this is?
MacBook Pro 15″, macOS 11.7
There's this .ePub file sitting on my external drive that I just can't delete. I've tried everything. It shows an error code -36 and is Zero KB. Does anybody know what this is?
MacBook Pro 15″, macOS 11.7
An .epub is not a folder but rather a single compressed zip file with its extension changed to .epub. Your current syntax is attempting to remove it as though it were a directory itself.
Try this:
sudo rm -f /Volumes/THE\ BOOMBOX/Corrupted\ File\ \[Do\ Not\ Touch\]/999.epub
or
sudo rm -f /Volumes/"The BOOMBOX/Corrupted File [Do Not Touch]"/999.epub
Assuming that path is correct. Just a suggestion… avoid naming folders with reserved characters (e.g. [, ]) that the UNIX shell interprets.
An .epub is not a folder but rather a single compressed zip file with its extension changed to .epub. Your current syntax is attempting to remove it as though it were a directory itself.
Try this:
sudo rm -f /Volumes/THE\ BOOMBOX/Corrupted\ File\ \[Do\ Not\ Touch\]/999.epub
or
sudo rm -f /Volumes/"The BOOMBOX/Corrupted File [Do Not Touch]"/999.epub
Assuming that path is correct. Just a suggestion… avoid naming folders with reserved characters (e.g. [, ]) that the UNIX shell interprets.
Post the output of these:
ls -aleR@ that.epub
ls -aled@ that.epub
Don’t care about the filenames (if those are sensitive), just the ownerships and protections.
Deleting Corrupt File