|
| CGUIFileSysWrapWin () |
|
| ~CGUIFileSysWrapWin () |
|
virtual eC_Bool | CheckIfDirectoryExists (const eC_String &kPath) const |
|
virtual eC_Bool | CheckIfFileExists (const eC_String &kPath) const |
|
virtual eC_Bool | CheckIfFileOrDirectoryExists (const eC_String &kPath) const |
|
virtual eC_Bool | CpFile (eC_String kSource, eC_String kDest, eC_Bool bOverwrite=false, eC_Bool bCopyEvenIfIdentical=true) |
|
virtual CGUIDirectory * | DirAlloc (const eC_String &kPath, const CGUIDirectory::StringList_t &kNameFilter, eC_UInt uiFilter=CGUIDirectory::ALL, CGUIDirectory::SortFlag_t eSort=CGUIDirectory::NAME, eC_Bool bCaseInsensitive=true) const |
|
virtual CGUIDirectory * | DirAlloc (const eC_String &kPath="", const eC_String &kNameFilter="") const |
|
virtual const eC_String & | GetDirSeparator () const |
|
virtual const CGUIDirInfo::DirInfoPtrList_t & | GetDrives () |
|
virtual eC_String | GetExecutablePath () |
|
virtual time_t | GetFileDateTime (const eC_String &kPath) const |
|
virtual long | GetFileSize (const eC_String &kPath) const |
|
virtual eC_String | GetHomePath () const |
|
virtual const eC_String & | GetRootPath () const |
|
virtual eC_Bool | IsDrive (const eC_String &kDirStr) const |
|
virtual eC_Bool | IsStrAbsolute (const eC_String &kStr) const |
|
virtual eC_String | MakePlatformPath (const eC_String &kOrgPath) const |
|
virtual eC_File * | OpenPlatformFile (const eC_String &kPath, eC_Flag uiMode=eC_File::FS_WRITEACCESS|eC_File::FS_READACCESS) const |
|
virtual eC_Bool | RemoveFile (const eC_String &kPath) const |
|
virtual eC_Bool | SetCurrentPath (const eC_String &kPath) |
|
| CGUIFileSysWrap () |
|
virtual | ~CGUIFileSysWrap () |
| Destructor, frees the drives list.
|
|
virtual eC_Bool | CheckIfDirectoryExists (const eC_String &kPath) const =0 |
|
virtual eC_Bool | CheckIfFileExists (const eC_String &kPath) const =0 |
|
virtual eC_Bool | CheckIfFileOrDirectoryExists (const eC_String &kPath) const =0 |
|
virtual eC_Bool | CpFile (eC_String kSource, eC_String kDest, eC_Bool bOverwrite=false, eC_Bool bCopyEvenIfIdentical=true)=0 |
|
virtual eC_Bool | CreateRelativePath (const eC_String &kFromPath, const eC_String &kToPath, eC_String &kResultPath) const |
|
void | DeInit () |
|
virtual CGUIDirectory * | DirAlloc (const eC_String &kPath, const CGUIDirectory::StringList_t &kNameFilter, eC_UInt uiFilter=CGUIDirectory::ALL, CGUIDirectory::SortFlag_t eSort=CGUIDirectory::NAME, eC_Bool bCaseInsensitive=true) const =0 |
|
virtual CGUIDirectory * | DirAlloc (const eC_String &kPath="", const eC_String &kNameFilter="") const =0 |
|
eC_String | GetCurrentPath () const |
|
virtual const eC_String & | GetDirSeparator () const =0 |
|
virtual const CGUIDirInfo::DirInfoPtrList_t & | GetDrives ()=0 |
|
virtual eC_String | GetExecutablePath ()=0 |
|
eC_String | GetFileBaseName (const eC_String &rkFileName) const |
| Extracts the base name of a file from a name that includes a path. More...
|
|
virtual time_t | GetFileDateTime (const eC_String &kPath) const |
|
eC_String | GetFileName (const eC_String &rkFileName) const |
| Extracts the file name from a file name that includes a path. More...
|
|
virtual long | GetFileSize (const eC_String &kPath) const |
|
eC_String | GetFileSuffix (const eC_String &rkFileName) const |
| Extracts the extension of a file name. More...
|
|
virtual eC_String | GetHomePath () const =0 |
|
eC_String | GetPath (const eC_String &rkFileName) const |
| Extracts the path from a file name that includes a path. More...
|
|
const eC_String & | GetPOSIXDirSeparator () const |
|
virtual const eC_String & | GetRootPath () const =0 |
|
const eC_String & | GetWinDirSeparator () const |
|
virtual eC_Bool | IsDrive (const eC_String &kDirStr) const =0 |
|
virtual eC_Bool | IsStrAbsolute (const eC_String &kStr) const =0 |
|
eC_Bool | MakeAbsolutePath (const eC_String &kRelPath, eC_String &kAbsPath) const |
|
virtual eC_String | MakeDirectoryPath (const eC_String &kPath) const |
|
virtual eC_Bool | MakeNormalizedPlatformPath (const eC_String &kOrgPath, eC_String &kResultPath) const |
|
virtual eC_String | MakePlatformPath (const eC_String &kOrgPath) const =0 |
|
virtual eC_File * | OpenPlatformFile (const eC_String &kPath, eC_Flag uiMode=eC_File::FS_WRITEACCESS|eC_File::FS_READACCESS) const |
|
virtual eC_Bool | RemoveFile (const eC_String &kPath) const =0 |
|
void | SeparateString (const eC_String &kOrgStr, eC_String &kLeftStr, eC_String &kRightStr, const eC_String &kSeparator, eC_Bool bFromLeft) const |
|
virtual eC_Bool | SetCurrentPath (const eC_String &kPath)=0 |
|
Implementation of CGUIFileSysWrap class for Windows systems.
virtual eC_Bool CGUIFileSysWrapWin::CpFile |
( |
eC_String |
kSource, |
|
|
eC_String |
kDest, |
|
|
eC_Bool |
bOverwrite = false , |
|
|
eC_Bool |
bCopyEvenIfIdentical = true |
|
) |
| |
|
virtual |
Copy a file. All file data and file meta information are copied from the source file to the destination file.
If the given destination is a directory that differs from the source directory, the source file is copied to the destination. If the source and destination directories are the same, this method does nothing and returns False.
If the given destination is a file and it is the same file as the source file, this method does nothing and returns False. Otherwise, it checks whether the destination file exists. If the destination file does not exist, a new file is created. Otherwise it checks whether the destination file can be overwritten. If that is the case, the destination file is overwritten if specified.
- Parameters
-
kSource | The source file name including path. If it is a relative path, the current working directory of the file system wrapper is used to complete the path. |
kDest | The destination directory or file. If it is a relative path the current working directory of the file system wrapper is used to complete the path. |
bOverwrite | Pass true to overwrite the destination file if it already exists. |
bCopyEvenIfIdentical | True if we want to copy the files even if they already exist and are identical (modification date, modification time and size). False if we want to skip copying the files which already exists and have the same date,time of modification and size. |
- Returns
- True if successful, otherwise False.
Implements CGUIFileSysWrap.