umask should do it.
Update for clarification: Corion's response clearly assumes that the OP is creating the dir structure on the remote server and then sending the files whereas I have assumed that the dir structure is being created on the local machine and then retrieving the files. The original question doesn't specify which is the actual scenario.
In reply to Re: mkdir and set permission using Net::FTP
by hippo
in thread mkdir and set permission using Net::FTP
by ngocanh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |