Hello,
I have a script that uploads files to a directory on my website. However, these files are initially not able to be read because of CHMOD settings. I can manually go in with a FTP program and change the settings; however, I was wondering if there was a way to change the CHMOD settings as it is uploaded.
Also, with this same script, I have a subroutine that deletes a selected folder. It first is supposed to read the directory, delete all files in the directory, then delete the directory; however, it does not work. It only deletes the folder if it is completely empty. I can not figure out to delete all the files first, with the script, then delete the folder.