29
29
* TestDir provides a temporary directory. In addition to KTempDir, it has
30
30
* methods that create files and subdirectories inside the directory.
33
32
class TestDir : public KTempDir
44
42
* The following functions create either a file, a list of files, or a directory.
45
43
* The paths may be absolute or relative to the test directory. Any missing parent
46
44
* directories will be created automatically.
49
void createFile(const QString& path, const QByteArray& data = QByteArray("test"), const QDateTime& time = QDateTime());
50
49
void createFiles(const QStringList& files);
51
50
void createDir(const QString& path, const QDateTime& time = QDateTime());
55
55
void makePathAbsoluteAndCreateParents(QString& path);