Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format for FTP directory listing
Message
De
15/01/2013 10:49:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Format for FTP directory listing
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01562611
Message ID:
01562611
Vues:
40
So far, my FTP class was working ok with all the FTP servers I was working with. With one that is causing a problem presently, it always works also ok except in one situation.

This is the known format I have discovered so far:
                            ' This is the standard
                            ' total 4696
                            ' drw-rw-rw-   1 user     group           0 Feb  6 15:46 .
                            ' drw-rw-rw-   1 user     group           0 Feb  6 15:46 ..
                            ' -rw-rw-rw-   1 user     group        4825 May  3  2010 Account.png
                            ' -rw-rw-rw-   1 user     group        5242 May  3  2010 Administration.png
                            ' -rw-rw-rw-   1 user     group        4117 Apr 17  2011 Agent.png
                            ' -rw-rw-rw-   1 user     group        1402 Dec 30  2005 AmazonCA.gif
                            ' -rw-rw-r--   1 wliclus  weblogic   308121 Jun  1  2011 tlv_01_jackk_2011615315_1185655_001_23327701.zip

                            ' This is also another format we have to support
                            ' -r-xr-xr-x   1 owner    group        78145990 Nov  4  2011 101.zip
                            ' -r-xr-xr-x   1 owner    group           35492 Apr 14  2011 20110414.40E
                            ' -r-xr-xr-x   1 owner    group           33583 Apr 14  2011 20110414.421
                            ' -r-xr-xr-x   1 owner    group           40815 Apr 14  2011 20110414.483
                            ' -r-xr-xr-x   1 owner    group           24836 Apr 14  2011 20110414.ARC
                            ' -r-xr-xr-x   1 owner    group            4737 May  5  2011 4A16PBE1.txt
                            ' -r-xr-xr-x   1 owner    group            4737 Jan 18 13:50 4A17A7B1.txt
This is a format one server is returning me when there is a file with 0 byte:
-rwxrwxrwx 1 owner group 0 Jan 14 16:25 9A389J11.txt
It seems something is making that FTP server to switch to a corrupted file listing format when there is a file with 0 byte in it. Otherwise, it is returning the file listing as per the first example in the first format.

Can someone explain me if this is normal or if this is controlled by a setting at the FTP server level?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Répondre
Fil
Voir

Click here to load this message in the networking platform