#include <FileInfo.h>
◆ FileInfo()
Base::FileInfo::FileInfo |
( |
const Base::String & |
FileName = L"" | ) |
|
◆ createDirectory()
bool Base::FileInfo::createDirectory |
( |
const char * |
| ) |
const |
Creates a directory. Returns TRUE if successful; otherwise returns FALSE.
◆ dirPath()
Returns the dir path name (which may be absolute or relative).
◆ exists()
bool Base::FileInfo::exists |
( |
| ) |
const |
◆ extension()
Base::String Base::FileInfo::extension |
( |
bool |
complete = false | ) |
const |
Returns the file's extension name. If complete is TRUE (the default), extension() returns the string of all characters in the file name after (but not including) the first '.' character. If complete is FALSE, extension() returns the string of all characters in the file name after (but not including) the last '.' character. Example:
std::string ext = fi.extension(true);
ext = fi.extension(false);
ext = fi.extension();
◆ fileName()
Returns the name of the file, excluding the path, including the extension.
◆ fileNamePure()
Returns the name of the file, excluding the path and the extension.
◆ filePath()
Returns the file name, including the path (which may be absolute or relative).
◆ getTempFileName()
static Base::String Base::FileInfo::getTempFileName |
( |
void |
| ) |
|
|
static |
get a unique File Name in the temp path
◆ getTempPath()
get the path to the dir which is designated to temp files
◆ hasExtension()
bool Base::FileInfo::hasExtension |
( |
const Base::String & |
Ext | ) |
const |
checks for a special extension, NOT case sensitive
◆ isDir()
bool Base::FileInfo::isDir |
( |
| ) |
const |
◆ isFile()
bool Base::FileInfo::isFile |
( |
| ) |
const |
◆ isReadable()
bool Base::FileInfo::isReadable |
( |
| ) |
const |
checks if the file exist and is readable
◆ isWritable()
bool Base::FileInfo::isWritable |
( |
| ) |
const |
checks if the file exist and is writable
◆ makeTemp()
void Base::FileInfo::makeTemp |
( |
const char * |
Template | ) |
|
generates a unique file name
◆ setFile()
◆ size()
unsigned int Base::FileInfo::size |
( |
| ) |
const |
◆ FileName
The documentation for this class was generated from the following file:
- D:/CadworkJobs/Softwareprojekte/Lexocad/V27.0/lexocad/Base/include/Base/FileInfo.h