Talk:Delete dir only if empty

From NSIS Wiki
Jump to navigationJump to search

Neat example, but I think it should be pointed out that NSIS's RMDir defaults to this behavior - e.g. it won't remove a directory if it is not empty. Only if you specify the /r flag will it recursively remove files from that directory.