Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Current Directory in Ftp Class
Message
From
08/07/2003 05:43:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00807877
Message ID:
00807880
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform