If a file you have permissions for will not delete assume it is a folder

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2022-05-26

Using a lab's SFTP connection, I tried to delete ./out/test using methods like rm. This failed and returned false without any debugging info.

I assumed this was a permissions thing.

In actuality, the issue was silly and blameable on a terrible UI: out/test was a folder, not a file. The UI didn't distinguish

Thus rmdir worked.