Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for file transfer completion
Message
 
 
À
02/04/2000 18:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00353899
Message ID:
00354103
Vues:
24
While a file is downloading, isn't its files size reported as zero? Couldn't you use adir() to get its attributes and look for a non-zero file size?

>Thanks. Now, after bitching about inadequate testing, this has not been tested under Win2K, and there might be issues if a tool like GetRight is in the loop - GetRight will download segments of a file offered at several sites in parallel, and might write and release the file after each segment finished; I don't know the detailed operations for everything. Most FTP implementations download to a temp file and rename to the real target name on completion, or open it in create mode and write, which would prevent you from opening it in unbuffered read/write mode as shown below.
>
>That should cover it.
>
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform