Method | Description | |
---|---|---|
CompareFileSize ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : bool |
Compares a local version of a file with its remote counterpart to check whether or not they are the same size.
|
|
CompareLastModified ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : bool |
Compares a local version of a file with its remote counterpart to check whether or not they have the same last modified date.
|
|
DeleteLocalFile ( string fileName, string localDirectory ) : void |
Deletes a local file from the file system.
|
|
DeleteRemoteFile ( string fileName, string remoteDirectory = "" ) : void |
Deletes a file from a remote FTP server.
|
|
DownloadFile ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : void |
Downloads a single file from a remote FTP server.
|
|
GetLocalDirectoryListing ( string directory = "" ) : List |
Gets a list of files stored in a given local directory.
|
|
GetLocalDirectoryListing ( string directory, bool subdirectories ) : List |
||
GetLocalFileSize ( string fileName, string localDirectory = "" ) : long? |
Gets the size of a file stored on the local file system.
|
|
GetLocalLastModified ( string fileName, string localDirectory = "" ) : DateTime? |
Gets the time at which a local file was last modified.
|
|
GetRemoteDirectoryListing ( ) : List |
Gets a listing of all the files in the root directory of the FTP server.
|
|
GetRemoteDirectoryListing ( string subDirectory ) : List |
Gets a listing of all the files in a subdirectory of the FTP server.
|
|
GetRemoteFileSize ( string fileName, string remoteDirectory = "" ) : long? |
Gets the size of a file stored on the remote server.
|
|
GetRemoteLastModified ( string fileName, string remoteDirectory = "" ) : DateTime? |
Gets the time at which a remote file was last modified.
|
|
LocalVersionExists ( string fileName, string localDirectory = "" ) : bool |
Checks if there is a given file present on the local filesystem.
|
|
NeedsDownload ( string filename, string localDirectory = "", string remoteDirectory = "" ) : bool |
Determines if a file needs to be downloaded, based on differences between the server and filesystem.
|
|
NeedsFeedbackDownload ( string filename, List |
|
|
NeedsUpload ( string filename, List |
|
|
NeedsUpload ( string filename, string localDirectory = "", string remoteDirectory = "" ) : bool |
Determines if a file needs to be downloaded, based on differences between the server and filesystem.
|
|
RemoteVersionExists ( string fileName, string remoteDirectory = "" ) : bool |
Checks if there is a given file present on a remote FTP server.
|
|
UploadFile ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : void |
Uploads a single file to a remote FTP server.
|
Method | Description | |
---|---|---|
GetDirectoryDetails ( string directory, string method ) : List |
Gets a directory listing from a remote server in a format according to the web request method used.
|
|
InitRequest ( string location, string method ) : |
Initialises an FTPWebRequest to perform operations on a remote FTP server.
|
|
ItemIsFile ( string item ) : bool |
Checks whether a specified string represents a file or a directory.
|
public static CompareFileSize ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : bool | ||
fileName | string | Name of the file. |
localDirectory | string | Directory that local version is stored in. Relative to working directory. |
remoteDirectory | string | Directory that remote version is stored in. |
return | bool |
public static CompareLastModified ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : bool | ||
fileName | string | Name of the file. |
localDirectory | string | Directory that local version is stored in. Relative to working directory. |
remoteDirectory | string | Directory that remote version is stored in. |
return | bool |
public static DeleteLocalFile ( string fileName, string localDirectory ) : void | ||
fileName | string | Name of the file to delete. |
localDirectory | string | Directory relative to working directory that it is stored in. |
return | void |
public static DeleteRemoteFile ( string fileName, string remoteDirectory = "" ) : void | ||
fileName | string | Name of the file to delete. |
remoteDirectory | string | Optional subdirectory it is located in. |
return | void |
public static DownloadFile ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : void | ||
fileName | string | Name of the file to download. |
localDirectory | string | Directory relative to the working directory to store it in once downloaded. |
remoteDirectory | string | Subdirectory the file is located in on the server. |
return | void |
public static GetLocalDirectoryListing ( string directory = "" ) : List |
||
directory | string | Optional subdirectory to retrieve list for instead. |
return | List |
public static GetLocalDirectoryListing ( string directory, bool subdirectories ) : List |
||
directory | string | |
subdirectories | bool | |
return | List |
public static GetLocalFileSize ( string fileName, string localDirectory = "" ) : long? | ||
fileName | string | Name of the file. |
localDirectory | string | Directory it is located in. Relative to the working directory. |
return | long? |
public static GetLocalLastModified ( string fileName, string localDirectory = "" ) : DateTime? | ||
fileName | string | Name of the file. |
localDirectory | string | Directory it is located in. Relative to the working directory. |
return | DateTime? |
public static GetRemoteDirectoryListing ( ) : List |
||
return | List |
public static GetRemoteDirectoryListing ( string subDirectory ) : List |
||
subDirectory | string | Name of the subdirectory to index. |
return | List |
public static GetRemoteFileSize ( string fileName, string remoteDirectory = "" ) : long? | ||
fileName | string | Name of the file. |
remoteDirectory | string | Directory it is located in. Relative to the root directory. |
return | long? |
public static GetRemoteLastModified ( string fileName, string remoteDirectory = "" ) : DateTime? | ||
fileName | string | Name of the file. |
remoteDirectory | string | Directory it is located in. Relative to the root directory. |
return | DateTime? |
public static LocalVersionExists ( string fileName, string localDirectory = "" ) : bool | ||
fileName | string | Name of the file. |
localDirectory | string | Directory it is located in. Relative to working directory. |
return | bool |
public static NeedsDownload ( string filename, string localDirectory = "", string remoteDirectory = "" ) : bool | ||
filename | string | Name of the file. |
localDirectory | string | Optional additional directory it is stored in. |
remoteDirectory | string | Directory it is located in on the server. |
return | bool |
public static NeedsFeedbackDownload ( string filename, List |
||
filename | string | |
files | List |
|
return | bool |
public static NeedsUpload ( string filename, List |
||
filename | string | |
files | List |
|
localDirectory | string | |
remoteDirectory | string | |
return | bool |
public static NeedsUpload ( string filename, string localDirectory = "", string remoteDirectory = "" ) : bool | ||
filename | string | Name of the file. |
localDirectory | string | Optional additional directory it is stored in. |
remoteDirectory | string | Directory it is located in on the server. |
return | bool |
public static RemoteVersionExists ( string fileName, string remoteDirectory = "" ) : bool | ||
fileName | string | Name of the file. |
remoteDirectory | string | Remote subdirectory it resides in. |
return | bool |
public static UploadFile ( string fileName, string localDirectory = "", string remoteDirectory = "" ) : void | ||
fileName | string | Name of the file. |
localDirectory | string | Directory relative to the working directory that file is currently stored in. |
remoteDirectory | string | Remote directory to store the file in once uploaded. |
return | void |