| View previous topic :: View next topic |
| Author |
Message |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Wed Sep 03, 2003 9:06 am Post subject: VDSIPP |
|
|
Hi, a problem with a function in VDSIPP if someone could help me ?
I used this command with success on a U-serv (ftp-server).
%S = @INTERNET(FTP,FILEINFO,1,%%anyfile,S)
But it will not work on an a Unix based ftp-server, %S = 0 it that case.
how can i check that filessize (bytes) are the same on both sides after an upload to the ftp-server ?
Any clue ?
Thanks
Dan |
|
| Back to top |
|
 |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Wed Sep 03, 2003 11:29 am Post subject: |
|
|
The same problem described above also happens for FTP-server based on "WS-FTP Server Manager".
/Dan |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Sep 03, 2003 2:34 pm Post subject: |
|
|
Hello Dan, the FILEINFO function is not really reliable, it parses out data from the list of files and tries to get the filename and size. The problem is many ftp servers have their own unique format for reporting the list of names/sizes permission. For instance:
FILENAME PERMISSION SIZE DATE
The above could be the format for one ftp server while on another it could be:
FILENAME SIZE DATE PERMISSION
The VDSIPP's FILEINFO function only parses out a specific format and thus when it encounters the ftp servers you are having problems with it can't find the right size value and returns 0.
The best way is to use the FILELIST function and manually parse out the data to get the file name, permissions, size, date since each ftp server has it's own method to return the data. |
|
| Back to top |
|
 |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Thu Sep 04, 2003 1:06 pm Post subject: |
|
|
| Thanks again PGWARE! |
|
| Back to top |
|
 |
|