in reply to FTP Question
Check out Net::FTP.
Look at the autoftp program linked to by the docs for a good example of the module's use.
Update: There's an an onsite tutorial by spurperl at Beginners guide to Net::FTP as well.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FTP Question
by atcroft (Abbot) on Dec 17, 2002 at 15:02 UTC | |
In addition, you may also wish to look at the samples in the FTP Stuff section of the Code Catacombs. You did not say why a standard FTP program was failing. Is it timing out? Failing because of the size of the directory? Or was it failing because you need something with a little more power to do things like lowercase or uppercase all filenames, remove spaces, and/or split the files into directories by one or more initial letters or something? Hopefully the excellent references suggested thus far by respondents to your post will be of help. Failing that, posting additional information may allow someone to offer you additional ideas or snippets that may be useful. In either case, I hope you find what you seek, and, perhaps, will even take time to post the solution you find, to aid those who may come after with similar needs. Update: You may also wish to check the Snippets Section for postings. grinder has an interface which may make that easier to do for what you seek. Update: Found a basic snippet of code I had that might help you get started.
Update: Modified title. | [reply] [d/l] |
by LostS (Friar) on Dec 17, 2002 at 15:41 UTC | |
----------------------- Billy S. Slinar Hardtail - Hand of Dane Datal Ephialtes - Guildless RallosZek.Net Admin/WebMaster
| [reply] [d/l] |
by waswas-fng (Curate) on Dec 17, 2002 at 16:30 UTC | |
You may be able to sort them into a dir tree like this:
It really depends what your file name convention is. You really just want to split the file names up in a way where you get a clean spread across a lot of dirs where you do not have to stat 40k files when you stat the dir. the task of creating this layout should be very simple with substr. Let me know if you need more info I may have some code around that shows an example of how to do this. Then deal with the transfer -- you may notice that it is simplified. -Waswas | [reply] [d/l] [select] |