Helper class to access a subdirectory of TransactionalFileSystem.
More...
#include <transactionaldirectory.h>
Helper class to access a subdirectory of TransactionalFileSystem.
Wraps a subdirectory of a librepcb::TransactionalFileSystem instance to allow accessing it like it was the root directory of a file system. In addition, it allows to copy or move whole directories between different transactional file systems.
◆ TransactionalDirectory() [1/3]
◆ TransactionalDirectory() [2/3]
◆ TransactionalDirectory() [3/3]
◆ ~TransactionalDirectory()
◆ getFileSystem() [1/2]
◆ getFileSystem() [2/2]
◆ getPath()
const QString & getPath |
( |
| ) |
const |
|
inlinenoexcept |
◆ isWritable()
bool isWritable |
( |
| ) |
const |
|
noexcept |
◆ isRestoredFromAutosave()
bool isRestoredFromAutosave |
( |
| ) |
const |
|
noexcept |
◆ getAbsPath()
FilePath getAbsPath |
( |
const QString & |
path = "" | ) |
const |
|
overridevirtualnoexcept |
◆ getDirs()
QStringList getDirs |
( |
const QString & |
path = "" | ) |
const |
|
overridevirtualnoexcept |
◆ getFiles()
QStringList getFiles |
( |
const QString & |
path = "" | ) |
const |
|
overridevirtualnoexcept |
◆ fileExists()
bool fileExists |
( |
const QString & |
path | ) |
const |
|
overridevirtualnoexcept |
◆ read()
QByteArray read |
( |
const QString & |
path | ) |
const |
|
overridevirtual |
◆ readIfExists()
QByteArray readIfExists |
( |
const QString & |
path | ) |
const |
|
overridevirtual |
◆ write()
void write |
( |
const QString & |
path, |
|
|
const QByteArray & |
content |
|
) |
| |
|
overridevirtual |
◆ renameFile()
void renameFile |
( |
const QString & |
src, |
|
|
const QString & |
dst |
|
) |
| |
|
overridevirtual |
◆ removeFile()
void removeFile |
( |
const QString & |
path | ) |
|
|
overridevirtual |
◆ removeDirRecursively()
void removeDirRecursively |
( |
const QString & |
path = "" | ) |
|
|
overridevirtual |
◆ copyTo()
◆ saveTo()
◆ moveTo()
◆ copyDirRecursively()
◆ mFileSystem
◆ mPath
The documentation for this class was generated from the following files: