#include <QString>
#include "string.h"
Go to the source code of this file.
Functions | |
bool | touch_file (QString filename, bool createdir=false, QString *errmsg=0) |
bool | create_path (QString path) |
Definition in file file.h.
bool create_path | ( | QString | path | ) |
Creates all directories in path, if they do not exist.
Definition at line 57 of file file.cpp.
Referenced by GeoIpCache::saveToDisk(), and touch_file().
bool touch_file | ( | QString | filename, | |
bool | createdir, | |||
QString * | errmsg | |||
) |
Create an empty file named filename. if createdir is true, then the full path to filename will be created. Returns true on success, or false on error and errmsg will be set.
Definition at line 37 of file file.cpp.
References create_path(), and err().
Referenced by AdvancedPage::browseTorConfig(), and TorControl::start().