hoarycripple has asked for the wisdom of the Perl Monks concerning the following question:

I have the need to create a .htaccess file on a local machine according to some user input, and then I want to upload that .htaccess file to a webserver directory. The problem is, I don't think that Net::FTP deals with hidden files. Initially I was using Net::FTP::Recursive to upload an entire directory, but it would not upload any hidden files in that directory. Anyone ever run into this problem? Any solutions? Thanks for any help!

Replies are listed 'Best First'.
Re: Uploading a hidden file
by Abigail-II (Bishop) on May 28, 2003 at 01:12 UTC
    What makes you think Net::FTP doesn't deal with hidden files? Why would Graham put in extra code to disallow hidden files? What did you try, and what happened when you tried?

    Abigail

Re: Uploading a hidden file
by dorko (Prior) on May 28, 2003 at 16:30 UTC
    I've not used Net::FTP::Recursive, but it sounds like you might have owner / user / permission problems. You might want to ask yourself:
    • Who owns .htaccess?
    • What are the permissions on .htaccess?
    • What user are you connecting as?
    • Do you have write access to the file / directory?

    Cheers,

    Brent
    -- Yeah, I'm a Delt.