in reply to How can I Check the permissions of the folder,and correct them?
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self

check:
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);
set:
chmod
see perlfunc for more details stat chmod.

pelagic