/// <summary>Any downloaded data, if applicable. This may also contain an error message, so you should check the 'ifError' variable before reading data.</summary>
publicbyte[]data
{
get{return_data;}
}
/// <summary>The downloaded data as text, decoded using the encoding specified by the 'encoding' variable.</summary>
publicstringtext
{
get
{
if(data==null)
returnnull;
returnencoding.GetString(data);
}
}
/// <summary>An array of filenames downloaded from the server. This must only be accessed after calling the 'DownloadFilenames' routine.</summary>
/// <summary>A UTC DateTime object representing the date and time a file on the server was last updated. This should only be called after calling the 'DownloadTimestamp' routine.</summary>
/// <summary>Synchronises the default file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
publicIEnumeratorSync()
{
returnSync(newES3Settings(),"","");
}
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the local file we want to synchronise.</param>
publicIEnumeratorSync(stringfilePath)
{
returnSync(newES3Settings(filePath),"","");
}
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the local file we want to synchronise.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
publicIEnumeratorSync(stringfilePath,stringuser)
{
returnSync(newES3Settings(filePath),user,"");
}
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the local file we want to synchronise.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the local file we want to synchronise.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to use.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="filePath">The relative or absolute path of the local file we want to synchronise.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Synchronises a local file with a file on the server. If the file on the server is newer than the local copy, the local file will be overwritten by the file on the server. Otherwise, the file on the server will be overwritten.</summary>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <summary>Downloads the default file from the server and saves it locally, overwriting the existing local default file. An error is returned if the file does not exist.</summary>
publicIEnumeratorDownloadFile()
{
returnDownloadFile(newES3Settings(),"","",0);
}
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to download.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="es3File">The ES3File we want to load our data into. The filename in the settings of the ES3File will be used when downloading.</param>
publicIEnumeratorDownloadFile(ES3Filees3File)
{
returnDownloadFile(es3File,"","",0);
}
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="es3File">The ES3File we want to load our data into. The filename in the settings of the ES3File will be used when downloading.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <summary>Downloads a file from the server and saves it locally, overwriting any existing local file. An error is returned if the file does not exist.</summary>
/// <param name="es3File">The ES3File we want to load our data into. The filename in the settings of the ES3File will be used when downloading.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <summary>Downloads the names of all of the files on the server. Downloaded filenames are stored in the 'filenames' variable of the ES3Cloud object.</summary>
/// <param name="user">The unique name of the user we want to find the filenames of.</param>
/// <param name="password">The password of the user we want to find the filenames of.</param>
/// <summary>Downloads the names of all of the files on the server. Downloaded filenames are stored in the 'filenames' variable of the ES3Cloud object.</summary>
/// <param name="user">The unique name of the user we want to find the filenames of.</param>
/// <param name="password">The password of the user we want to find the filenames of.</param>
/// <param name="searchPattern">A search pattern containing '%' or '_' wildcards where '%' represents zero, one, or multiple characters, and '_' represents a single character.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
publicIEnumeratorDownloadTimestamp()
{
returnDownloadTimestamp(newES3Settings(),"","");
}
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>
/// <summary>Downloads the timestamp representing when the server file was last updated. The downloaded timestamp is stored in the 'timestamp' variable of the ES3Cloud object.</summary>
/// <param name="filePath">The relative or absolute path of the file we want to get the timestamp of.</param>
/// <param name="user">The unique name of the user this file belongs to, if the file isn't globally accessible.</param>
/// <param name="password">The password of the user this file belongs to.</param>
/// <param name="settings">The settings we want to use to override the default settings.</param>