#include <FileUtils.h>
◆ CheckFileAccessAllowed()
bool CFileUtils::CheckFileAccessAllowed |
( |
const std::string & | filePath | ) |
|
|
static |
◆ DeleteItem() [1/2]
bool CFileUtils::DeleteItem |
( |
const std::shared_ptr< CFileItem > & | item | ) |
|
|
static |
◆ DeleteItem() [2/2]
bool CFileUtils::DeleteItem |
( |
const std::string & | strPath | ) |
|
|
static |
◆ DeleteItemWithConfirm()
bool CFileUtils::DeleteItemWithConfirm |
( |
const std::shared_ptr< CFileItem > & | item | ) |
|
|
static |
Delete a file with or without gui confirmation unless setting is off.
◆ Exists()
bool CFileUtils::Exists |
( |
const std::string & | strFileName, |
|
|
bool | bUseCache = true ) |
|
static |
◆ GetModificationDate() [1/2]
CDateTime CFileUtils::GetModificationDate |
( |
const int & | code, |
|
|
const std::string & | strFileNameAndPath ) |
|
static |
◆ GetModificationDate() [2/2]
CDateTime CFileUtils::GetModificationDate |
( |
const std::string & | strFileNameAndPath, |
|
|
const bool & | bUseLatestDate ) |
|
static |
Get the modified date of a file if its invalid it returns the creation date - this behavior changes when you set bUseLatestDate.
- Parameters
-
strFileNameAndPath | path to the file |
bUseLatestDate | use the newer datetime of the files mtime and ctime |
- Returns
- Returns the file date, can return a invalid date if problems occur
◆ LoadFile()
static unsigned int CFileUtils::LoadFile |
( |
const std::string & | filename, |
|
|
void *& | outputBuffer ) |
|
static |
◆ RemoteAccessAllowed()
bool CFileUtils::RemoteAccessAllowed |
( |
const std::string & | strPath | ) |
|
|
static |
- Todo
- Make sharing of auto-mounted sources user configurable
◆ RenameFile()
bool CFileUtils::RenameFile |
( |
const std::string & | strFile | ) |
|
|
static |
The documentation for this class was generated from the following files: