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

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
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.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum