|
nux-0.9.46
|
#include <NuxCore/FileManager/NFileManagerGeneric.h>
Public Member Functions | |
| int | Copy (const TCHAR *InDestFile, const TCHAR *InSrcFile, bool OverWriteExisting, bool OverWriteReadOnly, NFileTransferMonitor *Monitor) |
| bool | MakeDirectory (const TCHAR *Path, bool CreateCompletePath=false) |
| bool | DeleteDirectory (const TCHAR *Path, bool DeleteContentFirst=false) |
| Delete directory. | |
| bool | Move (const TCHAR *Dest, const TCHAR *Src, bool OverWriteExisting=true, bool OverWriteReadOnly=false, NFileTransferMonitor *Monitor=NULL) |
| int | CreateUniqueFileName (const TCHAR *Filename, const TCHAR *Extension, NString &OutputFilename, unsigned int BaseIndex=0xffffffff) |
| bool | IsDrive (const TCHAR *Path) |
| int nux::NFileManagerGeneric::Copy | ( | const TCHAR * | InDestFile, |
| const TCHAR * | InSrcFile, | ||
| bool | OverWriteExisting, | ||
| bool | OverWriteReadOnly, | ||
| NFileTransferMonitor * | Monitor | ||
| ) | [virtual] |
Implements nux::NFileManager.
Reimplemented in nux::NFileManagerGNU.
| int nux::NFileManagerGeneric::CreateUniqueFileName | ( | const TCHAR * | Filename, |
| const TCHAR * | Extension, | ||
| NString & | OutputFilename, | ||
| unsigned int | BaseIndex = 0xffffffff |
||
| ) | [virtual] |
Creates a unique file name. The format of the name is "DirectoryPath/BaseName####.Extension" where #### is a 4-digit number in [0, 9999]. The new name is unique and does not exist in the path directory. The function returns the value of the index created for the new file name or -1 if none could be found. The return value can be saved and passed the he next call to CreateUniqueFileName in order to speed up the search. Example usage: Create a new file name for of form DirectoryPath/Filename####.ext CreateUniqueFileName(TEXT("DirectoryPath/Filename"), TEXT("ext"), Output);
| Filename | Filename with optional path. |
| Extension | Extension. |
| OutputFilename | New filename. |
| BaseIndex | Base for index search. |
Implements nux::NFileManager.
| bool nux::NFileManagerGeneric::DeleteDirectory | ( | const TCHAR * | Path, |
| bool | DeleteContentFirst = false |
||
| ) | [virtual] |
Delete directory.
Delete a Directory. If DeleteContent is true, The content of the directory is deleted before the directory itself;
| Path | Path of the directory |
| DeleteContentFirst | Delete the content of the directory before deleting the directory itself. |
Implements nux::NFileManager.
Reimplemented in nux::NFileManagerGNU.
| bool nux::NFileManagerGeneric::IsDrive | ( | const TCHAR * | Path | ) |
| bool nux::NFileManagerGeneric::MakeDirectory | ( | const TCHAR * | Path, |
| bool | CreateCompletePath = false |
||
| ) | [virtual] |
Implements nux::NFileManager.
Reimplemented in nux::NFileManagerGNU.
| bool nux::NFileManagerGeneric::Move | ( | const TCHAR * | Dest, |
| const TCHAR * | Src, | ||
| bool | OverWriteExisting = true, |
||
| bool | OverWriteReadOnly = false, |
||
| NFileTransferMonitor * | Monitor = NULL |
||
| ) | [virtual] |
Implements nux::NFileManager.
Reimplemented in nux::NFileManagerGNU.