wininet.h 标头将 FtpGetCurrentDirectory 定义为一个别名,该别名根据 UNICODE 预处理器常量的定义自动选择此函数的 ANSI 或 Unicode 版本。 将中性编码别名与不中性编码的代码混合使用可能会导致编译或运行时错误不匹配。 有关详细信息,请参阅函数原型的约定。
FtpGetCurrentDirectory返回 FTP 服务器上的应用程序的当前目录。 包含 FTP 服务器上的根目录的目录路径。 FtpSetCurrentDirectory更改服务器上的工作目录。 传递给FtpSetCurrentDirectory的目录信息可以是相对于当前目录的部分或完全限定的路径名称。 例如,如果应用程序当前位于目录“public/info”中,并且路径为“ftp/examp...
BOOL WINAPI FtpGetCurrentDirectory( HINTERNET hConnect, LPCTSTR lpszCurrentDirectory, LPDWORD lpdwCurrentDirectory ); ParametershConnect [in] Valid handle to an FTP session. lpszCurrentDirectory [out] Long pointer to a buffer that receives the null-terminated string that contains the absolute path...
返回HINTERNEThandlesInternetCloseHandle关闭Internet连接目录操作FtpCreateDirectory在FTP服务器上建立目录,需要InternetConnect返回的会话句柄FtpRemoveDirectory在FTP服务器上删除目录,需要InternetConnect返回的会话句柄FtpGetCurrentDirectory获取当前在FTP服务器上的工作目录,需要InternetConnect返回的会话句柄FtpSetCurrentD...
This function retrieves the current directory for the specified FTP session.複製 BOOL WINAPI FtpGetCurrentDirectory(HINTERNET hConnect, LPCTSTR lpszCurrentDirectory, LPDWORD lpdwCurrentDirectory); ParametershConnect [in] Valid handle to an FTP session. lpszCurrentDirectory [out] Long pointer to a...
BOOL WINAPI FtpGetCurrentDirectory(HINTERNET hConnect, LPCTSTR lpszCurrentDirectory, LPDWORD lpdwCurrentDirectory); Parameters hConnect [in] Valid handle to an FTP session. lpszCurrentDirectory [out] Long pointer to a buffer that receives the null-terminated string that contains the absolute path ...
BOOL WINAPI FtpGetCurrentDirectory( HINTERNET hConnect, LPCTSTR lpszCurrentDirectory, LPDWORD lpdwCurrentDirectory ); Parameters hConnect [in] Valid handle to an FTP session. lpszCurrentDirectory [out] Long pointer to a buffer that receives the null-terminated string that contains the absolute path...
26. getControlPort():返回FTP服务器控制端口。27. getCurrentDirectory():返回当前目录的路径名。28. getDefaultTimeout():返回默认超时时间。29. getDirectory(String pathname):返回指定路径中文件的信息列表。30. getFeatures():返回服务器支持的功能列表。31. getFile(String remote, OutputStream local):将...
应用程序应使用 FtpGetCurrentDirectory 来确定远程站点的当前工作目录,而不是假设远程系统使用目录的分层命名方案。lpszDirectory 参数可以是相对于当前目录的部分或完全限定的文件名。与WinINet API 的其他所有方面一样,不能从 DllMain 或全局对象的构造函数和析构函数中安全地调用此函数。
rec = fe# 不能通过路劲打开必为文件,抓取其错误信息finally:if"Not a directory"instr(rec):return"File"elif"Current directory is"instr(rec):return"Dir"else:return"Unknow"defget_modify_time(self, dirpath=None):""" 得到指定目录、文件或者当前目录、文件的修改时间 ...