Name |
Description |
DownloadFile (String remotefilename, String localpath) |
Download the file from the FTP server and save the file with a filename with the same name as the remote file. Parameter description: Remotefilename: Remote file name LocalPath: Local Path |
DownloadFile (String remotefilename, String localpath, String localfilename) |
Download the file from the FTP server, specifying the local path and local file name. Parameter description: LocalPath: Local Path Localfilepath: Save the local path to the file, followed by "\" LocalFilename: Save the local file name |
DownloadFile (String remotefilename) |
Download the file from the FTP server and return the file binary data. Parameter description: Remotefilename: Remote file name |
DownloadFileAsync (String remotefilename, String localpath, String localfilename) |
Asynchronously downloads files from the FTP server, specifying the local path and local file name. Parameter description: Remotefilename: Remote file name LocalPath: Save the local path to the file, followed by "\" LocalFilename: Save the local file name |
DownloadFileAsync (String remotefilename, String localfullpath) |
Asynchronously downloads files from the FTP server, specifying the local full path file name. Parameter description: Remotefilename: Remote file name Localfullpath: Local full path file name |
UploadFile (String Localfullpath) |
Upload files to the FTP server. Parameter description: Localfullpath: Local file name with full path |
UploadFile (string localfullpath, bool overwriteremotefile) |
Upload files to the FTP server. Parameter description: Localfullpath: Local file with full path Overwriteremotefile: Overwrite files with the same name on the remote server |
UploadFile (String Localfullpath, String remotefilename) |
Upload files to the FTP server. Parameter description: Localfullpath: Local file with full path Remotefilename: To save the file name on the FTP server |
UploadFile (String Localfullpath, String remotefilename, bool overwriteremotefile) |
Upload files to the FTP server. Parameter description: Localfullpath: Local file name with full path Remotefilename: To save the file name on the FTP server Overwriteremotefile: Overwrite files with the same name on the remote server |
UploadFile (byte[] filebytes, string remotefilename) |
Upload files to the FTP server. Parameter description: Filebytes: Uploaded binary data Remotefilename: To save the file name on the FTP server |
UploadFile (byte[] filebytes, string remotefilename, bool overwriteremotefile) |
Upload files to the FTP server. Parameter description: Filebytes: File binary content Remotefilename: To save the file name on the FTP server Overwriteremotefile: Overwrite files with the same name on the remote server |
Uploadfileasync (String Localfullpath) |
Upload files asynchronously to the FTP server. Parameter description: Localfullpath: Local file name with full path |
Uploadfileasync (string localfullpath, bool overwriteremotefile) |
Upload files asynchronously to the FTP server. Parameter description: Localfullpath: Local file with full path Overwriteremotefile: Overwrite files with the same name on the remote server |
Uploadfileasync (String Localfullpath, String remotefilename) |
Upload files asynchronously to the FTP server. Parameter description: Localfullpath: Local file with full path Remotefilename: To save the file name on the FTP server |
Uploadfileasync (String Localfullpath, String remotefilename, bool overwriteremotefile) |
Upload files asynchronously to the FTP server. Parameter description: Localfullpath: Local file name with full path Remotefilename: To save the file name on the FTP server Overwriteremotefile: Overwrite files with the same name on the remote server |
Uploadfileasync (byte[] filebytes, string remotefilename) |
Upload files asynchronously to the FTP server. Parameter description: Filebytes: Uploaded binary data Remotefilename: To save the file name on the FTP server |
Uploadfileasync (byte[] filebytes, string remotefilename, bool overwriteremotefile) |
Upload files asynchronously to the FTP server. Parameter description: Filebytes: File binary content Remotefilename: To save the file name on the FTP server Overwriteremotefile: Overwrite files with the same name on the remote server |
Listfilesanddirectories () |
Lists all files and directories for the current directory above the FTP server. |
Listfiles () |
Lists all files in the current directory above the FTP server. |
Listdirectories () |
Lists all directories for the current directory above the FTP server. |
Directoryexist (String remotedirectoryname) |
Determines whether a subdirectory specified under the current directory exists. Parameter description: Remotedirectoryname: Specified directory name |
FileExist (String remotefilename) |
Determines whether a remote file exists under the current directory of the server. Parameter description: Remotefilename: Remote file name |
DeleteFile (String remotefilename) |
Deletes a file from the FTP server. Parameter description: Remotefilename: Remote file name |
ReName (String remotefilename, String newfilename) |
Change the name of a file or the name of a directory. Parameter description: Remotefilename: Original file or directory name NewFileName: The name of the new file or directory |
Copyfiletoanotherdirectory (string remotefile, String directoryname) | TD valign= "Top" width= "321" >
Movefiletoanotherdirectory (String remotefile, String directoryname) |
Move one of the files below the current directory to the other directory on the server, and note that after you move the file, the current working directory or the directory where the file is originally located. Parameter description: RemoteFile: File name under current directory DirectoryName: New directory name. Note: If the new directory is a subdirectory of the current directory, specify the subdirectory directly. such as: Subdirectory1/subdirectory2; If the new directory is not a subdirectory of the current directory, you must specify one level from the root directory. For example:./newdirectory/subdirectory1/subdirectory2 |
Makedirectory (String directoryname) |
Create a subdirectory on the FTP server for the current working directory. Parameter description: DirectoryName: Sub Directory Name |
RemoveDirectory (String directoryname) |
Deletes a subdirectory from the current working directory. Parameter description: DirectoryName: Sub Directory Name |
Isvalidpathchars (String directoryname) |
Determines whether the characters in the directory name are legitimate. Parameter description: DirectoryName: Directory Name |
Isvalidfilechars (String FileName) |
Determines whether the characters in the file name are legitimate. Parameter description: FileName: File name |
Gotodirectory (String directoryname) |
Enter a directory. Parameter description: DirectoryName: The name of the new catalog. Note: If the new directory is a subdirectory of the current directory, specify the subdirectory directly. such as: Subdirectory1/subdirectory2; If the new directory is not a subdirectory of the current directory, you must specify one level from the root directory. For example:./newdirectory/subdirectory1/subdirectory2 |
Enteronesubdirectory (String directoryname) |
Enter a subdirectory from the current working directory. Parameter description: DirectoryName: Sub Directory Name |
Comeoutdirectory () |
Go to the previous directory from the current working directory. |
|
|