|
xapian-core
1.4.29
|
C++ function versions of useful Unix commands. More...
#include <string>
Include dependency graph for unixcmds.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | cp_R (const std::string &src, const std::string &dest) |
| Recursively copy a directory, just like the Unix "cp -R" command. More... | |
| void | rm_rf (const std::string &filename) |
| Remove a directory and contents, just like the Unix "rm -rf" command. More... | |
| void | touch (const std::string &filename) |
| Touch a file, just like the Unix "touch" command. More... | |
C++ function versions of useful Unix commands.
Definition in file unixcmds.h.
| void cp_R | ( | const std::string & | src, |
| const std::string & | dest | ||
| ) |
Recursively copy a directory, just like the Unix "cp -R" command.
Recursively copy a directory, just like the Unix "cp -R" command.
Definition at line 67 of file unixcmds.cc.
References append_filename_argument(), and checked_system().
Referenced by DEFINE_TESTCASE().
| void rm_rf | ( | const std::string & | filename | ) |
Remove a directory and contents, just like the Unix "rm -rf" command.
Definition at line 111 of file unixcmds.cc.
References append_filename_argument(), checked_system(), dir_exists(), errno_to_string(), and RealTime::sleep().
Referenced by DEFINE_TESTCASE(), BackendManagerChert::do_get_database_path(), BackendManagerGlass::do_get_database_path(), BackendManager::get_database(), BackendManager::get_database_path(), BackendManagerGlass::get_writable_database(), BackendManagerChert::get_writable_database(), and rmtmpdir().
| void touch | ( | const std::string & | filename | ) |
Touch a file, just like the Unix "touch" command.
Definition at line 155 of file unixcmds.cc.
References close(), O_BINARY, and Xapian::InMemory::open().
Referenced by DEFINE_TESTCASE().