mkdir temp
mkdir: cannot create directory ‘temp’: File exists
rm temp/
rm: cannot remove 'temp/': Is a directory
Is there any reason why the first error message should not be “Directory exists”? I get that everything is a file in some sense but it’s not helpful if rm then refuses to delete because it is not a file.
Also, “Is a directory” is really not a sentence. Could it be “It is a directory.” instead?