retitle 761056 Can't use long pathnames with some(?) FTP servers thanks Hello,
Sorry, after some more testing the limitation appears to be of a different nature: a total length of path+filename maximum of 198 characters, that can be passed in one command. For testing I have now created a directory on the FTP server, named as (without spaces): 012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890x And inside it, a file named: 01234567890012345678900123456789001234567890012345678900123456789001234567890z Trying to get the modification time of that file "in one go": ftp> cd / 250 OK. Current directory is / ftp> quote MDTM /012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890x/01234567890012345678900123456789001234567890012345678900123456789001234567890z 550 Can't check for file existence This is the same error that sitecopy is hitting. But, if I first 'cd' into the long-named directory and then issue MDTM with a shorter argument (just the filename), it works: ftp> cd 012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890x 250 OK. Current directory is /012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890x ftp> quote MDTM 01234567890012345678900123456789001234567890012345678900123456789001234567890z 213 20140910132003 Unfortunately sitecopy seems to issue its file operations with absolute pathnames, which end up being too long for (this particular?) server to handle, and that's what is causing the problem. I wonder if this is just a limitation of my provider's particular FTP server. Regardless, it'd be nice to have a mode where sitecopy would 'cd' into directories one by one, to allow for a longer total pathname than the FTP server has decided to allow fitting into one command argument. "ftp usecwd" option seems to be very close, but it does not affect how MDTM is issued during fetch (and for the above example to work, it must be issued only on files in the current working directory too). -- With respect, Roman
signature.asc
Description: PGP signature