in reply to mkdir and set permission using Net::FTP
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.
|
|---|