MySQL  8.0.19
Source Code Documentation
filesystem-posix.cc File Reference
#include "mysql/harness/filesystem.h"
#include <cassert>
#include <cerrno>
#include <climits>
#include <cstring>
#include <sstream>
#include <stdexcept>
#include <system_error>
#include <dirent.h>
#include <fnmatch.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

Classes

class  mysql_harness::Directory::DirectoryIterator::State
 
struct  mysql_harness::Directory::DirectoryIterator::State::free_dealloc
 

Namespaces

 mysql_harness
 

Functions

HARNESS_EXPORT int mysql_harness::delete_dir (const std::string &dir) noexcept
 Removes a directory. More...
 
HARNESS_EXPORT int mysql_harness::delete_file (const std::string &path) noexcept
 Removes a file. More...
 
HARNESS_EXPORT std::string mysql_harness::get_tmp_dir (const std::string &name="router")
 Creates a temporary directory with partially-random name and returns its path. More...
 
int mysql_harness::mkdir_wrapper (const std::string &dir, perm_mode mode)