rmdir deletes also non-empty directories

Advertisement

Arek
Guest

rmdir deletes also non-empty directories

why rmdir deletes also non-empty dirs ?

In documentation is writen:

"In general the command can remove empty directories only."

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

Re: rmdir deletes also non-empty directories

Well, it says that you should not rely on rmdir to remove non-empty dirs. But it does not say that it never does.

Reply with quote

Advertisement

You can post new topics in this forum