Just a small remark, but the script is't executed from within the directory you are trying to move, is it?
The permission denied means -most likely- that there is a lock on this directory. So some process is running from within this directory.
In reply to Re: rmtree deletes everything inside the folder but doesn't deletes the root folder him self
by mce
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self
by Nelly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |