Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Current Directory in Ftp Class
Message
De
08/07/2003 05:43:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00807877
Message ID:
00807880
Vues:
21
>Guys...
>I've download the sourcecode of FTP_CLASS..
>In it, there's way to create directory, upload, download and else..
>
>But i want to know how to check the directory already exist or not..
>
>I have try the 'FtpGetCurrentDirectory' but still confuse of using it..
>
>DO any of you know how to use it..
>
>thx

Tut,

Does this help ?
#define INTERNET_MAX_PATH_LENGTH 2048

local RemoteDir, RemoteDirLength

RemoteDirLength = INTERNET_MAX_PATH_LENGTH
RemoteDir = repl(chr(0), INTERNET_MAX_PATH_LENGTH)

if( empty(FtpGetCurrentDirectory(this.ftpHandle, @RemoteDir, @RemoteDirLength) ) )
	return FALSE
endif

this.RemoteDirectory = left(RemoteDir, RemoteDirLength)

return this.RemoteDirectory
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform