Andrew Doades wrote: > Michael Morin wrote: >> Andrew Doades wrote: >>> but ftp.dir return really silly filename, so when ftp tries to fetch >> Define "really silly filename". Show a dir of the directory, then show >> what your Ruby script is returning. > > This is what the log returns > > found files, 08-30-08 02:10AM 196700640 file_20080830.7z > Making attempt to fetch all files > Error:550 08-30-08 02:10AM 196700640 file_20080830.7z: The > system cannot find the file specified. Those aren't "really silly filenames," those are the lines returned by the DIR command. Extract the filenames using split(/\s+/, 4). I'm not sure, but I don't think FTP defines any specific format for DIR output, so this might not work on all servers. -- Michael Morin Guide to Ruby http://ruby.about.com/ Become an About.com Guide: beaguide.about.com About.com is part of the New York Times Company