NET SFTP Library
SFTP Class Methods


KellermanSoftware.NetSFtpLibrary Namespace : SFTP Class

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

Public Methods
 NameDescription
Public MethodCalculate 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 MethodCancels any async transfers  
Public MethodOverloaded.  Clear the file log  
Public MethodCompress the passed bytes using the specified compression type  
Public MethodCompress a file using the specified compression type  
Public MethodCompress a stream using the specified compression type  
Public MethodOpen the FTP Server connection explicitly and leave it open until explicitly closed.  
Public MethodReturn 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 Creates a local-side port forwarding.  
Public Method Creates a remote side port forwarding to a host at the local side.  
Public MethodDecompress the passed bytes using the specified compression type  
Public MethodDecompress a file using the specified compression type  
Public MethodDecompress a stream using the specified compression type  
Public MethodDelete 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 Delete local-side port forwarding  
Public Method Removes a remote port forwarding.  
Public MethodReturns true if the Cyclic Redundancy Check Passes for all files in two local directories  
Public MethodCheck to see if an FTP directory exists.  
Public MethodDisable all logging.  
Public MethodExplicitly disconnect from the SFTP server.  
Public Method Disposes the object by canceling any async transfer and destroying the FTPRequest object  
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 SFTP connections  
Public Method Download a directory and all subdirectories in Parallel using two threads and two SFTP connections  
Public MethodOverloaded. Download a file name synchronously using FTP  
Public MethodOverloaded.  Download a file from the SSH server asynchronously from the specified byte offset.  
Public Method Download files in Parallel using two threads with two SFTP connections  
Public Method Download files in Parallel as an Async Task using two threads with two SFTP connections  
Public MethodOverloaded. Download to a file stream from the FTP Server synchronously.  
Public MethodOverloaded.  Download to a file stream from the SSH server asynchronously from the specified byte offset.  
Public MethodOverloaded.  Log all FTP commands, responses, and exceptions to the console.  
Public Method Execute a shell command on an SSH Server  
Public Method Check to see if a file exists in the current FTP directory  
Public MethodReturns true if a file exists in the current directory matching the regular expression  
Public MethodReturns true if a file exists in the current directory matching the wildcard pattern  
Public Method Generate a public/private key pair for SSH.  
Public Method Recursively get a list of files in the specified directory and all subdirectories  
Public MethodGet 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 MethodGet 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 Method Returns a snapshot of the current local port forwarding configurations.  
Public Method Move a file on the SFTP Server  
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 MethodResume a download from the current stream position  
Public MethodResume an upload for a file synchronously using sftp. It automatically resumes where it left off.  
Public MethodOverloaded.  Resume an upload for a file asynchronously using sftp. It automatically resumes where it left off.  
Public MethodResume 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 Create a directory using the SCP Protocol  
Public MethodOverloaded.  Get a file using the SCP Protocol  
Public MethodOverloaded.  Upload a file using the SCP Protocol  
Public Method Set file or directory permissions. It must be in the same format as the permissions string in the FileInfo  
Public Method Synchronize specified by name directory on current SFTP and destination SFTP.  
Public Method Synchronize specified by name directory on current SFTP and destination SFTP asynchronously  
Public Method Transfer specified by name file from current SFTP to destination SFTP.  
Public Method Transfer specified by name file from current SFTP to destination SFTP asynchronously.  
Public MethodSort an FTP Directory Listing  
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 60. The hour difference between the local machine and the SSH 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 SSH 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 60. The hour difference between the local machine and the SSH 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 SSH 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 SSH 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 SSH 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 SSH 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.  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 SSH 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 Method Get connected host  
Public MethodOverloaded.  Upload an entire directory, subdirectories, and files synchronously using sftp.  
Public MethodOverloaded.  Upload an entire directory, subdirectories, and files asynchronously using sftp.  
Public Method Upload a directory and all sub directories in parallel using two threads and two SFTP connections  
Public Method Download a directory and all sub directories in parallel using two threads and two SFTP 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 SFTP connections  
Public Method Upload files in Parallel as an Async Task using two threads with two SFTP connections  
Public MethodUpload a file with a unique file name synchronously using FTP  
Public MethodOverloaded. Upload a file stream to the SSH server synchronously.  
Public MethodOverloaded.  Upload a file stream asynchronously to the SSH server  
Public MethodTranslate a wildcard pattern to a regex string  
Top
Protected Methods
 NameDescription
Protected Method Finalize  
Top
See Also

Reference

SFTP Class
KellermanSoftware.NetSFtpLibrary Namespace