NET FTP Library
FTP Class Methods


KellermanSoftware.NetFtpLibrary Namespace : FTP Class

For a list of all members of this type, see FTP members.

Public Methods
 NameDescription
Public Method Calculate the difference in hours between the local pc and the remote ftp server. The current logged in user must have write access to the current ftp directory.  
Public Method Cancels any async transfers  
Public MethodOverloaded.  Clear the file log  
Public Method Compress the passed bytes using the specified compression type  
Public Method Compress a file using the specified compression type  
Public Method Compress a stream using the specified compression type  
Public Method Open the FTP Server connection explicitly and leave it open until explicitly closed.  
Public Method Returns true if the CRC matches for the local file and the FTP file The FTP server must support the XCRC command  
Public Method Return true if the Cyclic Redundancy Check is the same for two local files. This is a fast way to compare if two files are the same  
Public Method Create a directory in the current FTP directory  
Public Method Decompress the passed bytes using the specified compression type  
Public Method Decompress a file using the specified compression type  
Public Method Decompress a stream using the specified compression type  
Public Method Delete all files in the current FTP directory with a modification date within the specified date range  
Public MethodOverloaded.  Deletes all of the files in the current directory matching a pattern  
Public Method Delete a directory in the current FTP directory. It deletes all files and sub directories within a directory.  
Public Method Delete a file in the current FTP directory  
Public Method Returns true if the Cyclic Redundancy Check Passes for all files in two local directories  
Public MethodCheck to see if an FTP directory exists.  
Public Method Disable all logging.  
Public MethodExplicitly disconnect from the FTP server.  
Public Method Disposes the object by canceling any async transfer and destroying the FTPRequest object  
Public Method Download the chunk of a file into a local stream  
Public MethodOverloaded. Download files matching the wildcard pattern.  
Public MethodOverloaded. Download files matching the wildcard pattern.  
Public Method Download a directory and all subdirectories in Parallel using two threads and two FTP connections  
Public Method Download a directory and all subdirectories in Parallel using two threads and two FTP connections  
Public MethodOverloaded.  Download a file name synchronously using FTP  
Public MethodOverloaded.  Download a file from the FTP server asynchronously from the specified byte offset.  
Public Method Download files in Parallel using two threads with two FTP connections  
Public Method Download files in Parallel as an Async Task using two threads with two FTP connections  
Public MethodOverloaded. Download to a file stream from the FTP Server synchronously.  
Public MethodOverloaded.  Download to a file stream from the FTP server asynchronously from the specified byte offset.  
Public MethodOverloaded.  Log all FTP operations to a memory stream.  
Public Method Return a list of features supported by the FTP Server by issuing a FEAT command.  
Public Method Check to see if a file exists in the current FTP directory  
Public Method Returns true if a file exists in the current directory matching the regular expression  
Public Method Returns true if a file exists in the current directory matching the wildcard pattern  
Public Method Recursively get all the files in the specified FTP Directory and all subdirectories  
Public Method Get the CRC32 of a local file in hexadecimal  
Public MethodOverloaded.  Get a listing of the files in the current FTP directory and filter between a start and end date  
Public Method Get a directory listing as XML  
Public MethodGets the size of a remote directory in bytes  
Public MethodGets the modification date of a remote file.  
Public MethodGets the file size of a remote file in bytes.  
Public MethodGet the FTP Server type (uses the SYST command)  
Public Method Uses NLST to get a list of the file names in the current directory See also: GetRawDirectoryListing, GetDirectoryListing  
Public MethodOverloaded.  Returns the raw directory listing of the current FTP folder via the LIST command  
Public Method Returns a raw standard directory listing of the current FTP folder via the MLSD command  
Public Method Get the first bytes in a file  
Public Method Get the XCRC aka CRC32 of an FTP file in hexadecimal. The FTP Server must support XCRC. See the Features() method  
Public Method Returns a list of supported commands on the FTP Server by issuing a HELP Command  
Public Method Move a file on the FTP Server  
Public Method Parse the directory listing into a list of FTPFileInfo objects This is used for unit testing of directory formats  
Public Method Parse a Standardized Directory Listing returned from an MLSD command  
Public MethodOverloaded.  Upload an ASCII file  
Public Method Renames a directory in the current FTP directory  
Public MethodRenames a file in the current FTP directory.  
Public MethodAutomatically resume downloading a file where it was left off.  
Public MethodOverloaded.  Resume downloading a file asynchronously. It automatically starts at where it left off.  
Public Method Resume a download from the current stream position  
Public Method Resume an upload for a file synchronously using FTP. It automatically resumes where it left off.  
Public MethodOverloaded.  Resume an upload for a file asynchronously using FTP. It automatically resumes where it left off.  
Public Method Resume an upload from a local stream to an FTP file. It automatically starts at where it left off.  
Public MethodOverloaded.  Resume an upload from a local stream to an FTP file. It automatically starts at where it left off.  
Public Method Retry after a failed Asynchronous FTP Operation  
Public Method Send a No Operation command  
Public MethodOverloaded.  Send a raw FTP command  
Public Method Synchronize specified by name directory on current FTP and destination FTP.  
Public Method Synchronize specified by name directory on current FTP and destination FTP asynchronously.  
Public Method Transfer specified by name file from current FTP to destination FTP.  
Public Method Transfer specified by name file from current FTP to destination FTP asynchronously.  
Public Method Sort an FTP Directory Listing  
Public Method Issue a STAT command to the FTP Server and return the current statistics for the FTP Session  
Public MethodOverloaded.  Transfer files that do not exist locally synchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized.  
Public MethodOverloaded.  Transfer files that do not exist locally asynchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized.  
Public MethodOverloaded.  Transfer files that do not exist locally synchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized. Local files and directories will be deleted if they do not exist in the corresponding FTP directory.  
Public MethodOverloaded.  Transfer files that do not exist locally asynchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized. Local files and directories will be deleted if they do not exist in the corresponding FTP directory.  
Public MethodOverloaded.  Transfer files that do not exist locally synchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized.  
Public MethodOverloaded.  Synchronize Upload a Directory and Exclude a List of files, directories, or wildcards  
Public MethodOverloaded.  Transfer files that do not exist locally synchronously OR Files that have a different byte count OR Files that have a modification date difference in seconds greater than 60. The hour difference between the local machine and the FTP server is taken into account when CalcHourDifference has been called. By default all files and sub directories are attempted to be synchronized. FTP files and directories will be deleted if they do not exist in the corresponding local directory.  
Public MethodOverloaded.  Synchronize Upload a Directory With Delete and Exclude a List of files, directories, or wildcards  
Public Method Append a chunk to the end of a file  
Public MethodOverloaded.  Upload an entire directory, subdirectories, and files synchronously using FTP.  
Public MethodOverloaded.  Upload an entire directory, subdirectories, and files asynchronously using FTP.  
Public Method Upload a directory and all sub directories in parallel using two threads and two FTP connections  
Public Method Download a directory and all sub directories in parallel using two threads and two FTP connections  
Public MethodOverloaded.  Upload a file name synchronously using FTP  
Public MethodOverloaded. Upload a file asynchronously.  
Public Method Upload files in Parallel using two threads with two FTP connections  
Public Method Upload files in Parallel as an Async Task using two threads with two FTP connections  
Public Method Upload a file with a unique file name synchronously using FTP  
Public MethodOverloaded. Upload a file stream to the FTP server synchronously.  
Public MethodOverloaded.  Upload a file stream asynchronously to the FTP server  
Public Method Translate a wildcard pattern to a regex string  
Top
Protected Methods
 NameDescription
Protected Method  
Protected Method Finalize  
Protected Method Calculates the current and average transfer speed, throttling it if needed  
Protected Method Verify that the FTP directory exists  
Protected Method Ensure that the local directory can be written to  
Protected Method Verify that the local stream can be downloaded  
Protected Method Ensure the local stream can be uploaded  
Top
See Also

Reference

FTP Class
KellermanSoftware.NetFtpLibrary Namespace