Moving files within users' folder via FTP


#1

Hi,

I’ve setup a user with FTP access so that he can upload a file and then I planned to move the file into the root, making it available to other users. The file has been uploaded but when I try to move it across to the root it copies about 1.28Kb a sec. I was expecting the same speed as moving but file within Windows (Same Drive!).

I use Smart FTP.

Does anybody have any suggestions?

BTW the file is about 600Mb.

TIA
Phillip

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#2

What does your FTP client log show it is doing? Because smart clients simply rename the file into the new location. Also, there is no ‘copy’ in FTP or SFTP. If you are actually trying to copy the file, you’d have to download it, then upload it to the new location. I’d image then for some reason your FTP client is doing a ‘download source/upload destination/delete source’ operation instead of a ‘rename source to destination’ operation.

What FTP client are you using? Does it only do it for the large file?

:cool: Perl / MySQL / HTML+CSS


#3

I’m using Smart FTP.

"Does it only do it for the large file?"
I don’t think so, this is the first time I’ve noticed it. I don’t want to copy it, just move it. But I scared of playing around too much in case I screw up the file and the user has to upload it again.

Below is a test of a small file to see the log::
"257 “/planetphillip.com” is current directory.
PASV
227 Entering Passive Mode (205,196,219,6,194,77).
Opening data connection IP: 205,196,219,6,194,77 PORT: 49741.
LIST -aL
150 Opening ASCII mode data connection for file list
4450 bytes received successfully. (1.09 KB/s) (00:00:04).
226-Transfer complete.
226 Quotas off
CWD /planetphillip.com/files
250 CWD command successful.
PWD
257 “/planetphillip.com/files” is current directory.
PASV
227 Entering Passive Mode (205,196,219,6,208,186).
Opening data connection IP: 205,196,219,6,208,186 PORT: 53434.
LIST -aL
150 Opening ASCII mode data connection for file list
3255 bytes received successfully. (1.06 KB/s) (00:00:03).
226-Transfer complete.
226 Quotas off
PORT 205,196,219,6,194,200
200 PORT command successful.
STOR readme.txt
150 Opening ASCII mode data connection for readme.txt.
226 Transfer complete.
1310 bytes received successfully. (0.43 KB/s) (00:00:03).
"
Hopefully it’s OK to post this stuff.

TIA
Phillip

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#4

Well, I didn’t see where in there you download the file readme.txt, but this is the line that shows SmartFTP was uploading from local (your computer) to remote (DreamHost server):

[code]PORT 205,196,219,6,194,200
200 PORT command successful.
STOR readme.txt
150 Opening ASCII mode data connection for readme.txt.
226 Transfer complete.
1310 bytes received successfully. (0.43 KB/s) (00:00:03).[/quote]

So looks like SmartFTP isn’t doing a rename, which looks like:

[pre]CWD /source-dir
250 CWD command successful.
RNFR /source-dir/filename
350 File or directory exists, ready for destination name.
RNTO /target-dir/filename
250 rename successful.[/code]See, no downloading or uploading involved there. See this thread on the SmartFTP forum:
http://www.smartftp.com/phpBB2/viewtopic.php?t=5259

:cool: Perl / MySQL / HTML+CSS


#5

OK, I think I’ll try another client. I can’t find the console in SmartFTP and it’s always good to use other software.

Thanks for your help.

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters