|
Daniel's XL Toolbox NG
|
Represents a backup file with a date stamp in the file name. More...
Public Member Functions | |
| bool | Delete () |
| Deletes the physical file that is represented by the BackupFile object. More... | |
| void | Open () |
| Opens the workbook represented by this BackupFile. More... | |
| BackupFile (string path) | |
| Creates a new BackupFile object from a given backup file path. More... | |
Static Public Member Functions | |
| static BackupFile | CreateBackup (string fileToBackUp, string backupDir) |
| Creates a new backup by copying the file to backup to the backup dir and inserting a time stamp with the last write time into the file name. More... | |
Protected Member Functions | |
| BackupFile () | |
| BackupFile (Exception exception) | |
Properties | |
| bool | IsDeleted [get] |
| string | Path [get, set] |
| Gets or sets the path of the backup file. More... | |
| TimeStamp | TimeStamp [get] |
| Gets the TimeStamp object that contains the date and time extracted from the Path. If the Path does not contain a valid time stamp, the TimeStamp's HasValue property is false. More... | |
| int | Year [get] |
| int | Month [get] |
| int | Day [get] |
| bool | IsOfToday [get] |
| Gets whether the file's time stamp equals today's date. If the file does not have a valid time stamp, it returns false. More... | |
| bool | IsValidBackup [get] |
| Exception | Exception [get] |
Represents a backup file with a date stamp in the file name.
|
inlineprotected |
|
inline |
Creates a new BackupFile object from a given backup file path.
| path |
|
inlineprotected |
|
inlinestatic |
Creates a new backup by copying the file to backup to the backup dir and inserting a time stamp with the last write time into the file name.
| fileToBackUp | File to back up. |
| backupDir | Backup directory; this must not be rooted. |
|
inline |
Deletes the physical file that is represented by the BackupFile object.
|
inline |
Opens the workbook represented by this BackupFile.
|
get |
|
get |
|
get |
|
get |
Gets whether the file's time stamp equals today's date. If the file does not have a valid time stamp, it returns false.
|
get |
|
get |
|
getset |
Gets or sets the path of the backup file.
|
get |
|
get |