MySQL  8.0.19
Source Code Documentation
filesystem-windows.cc File Reference
#include "mysql/harness/filesystem.h"
#include <direct.h>
#include <cassert>
#include <cerrno>
#include <random>
#include <sstream>
#include <stdexcept>
#include <string>
#include <shlwapi.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <windows.h>

Classes

class  mysql_harness::Directory::DirectoryIterator::State
 

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...
 
std::unique_ptr< SECURITY_DESCRIPTOR, decltype(&free)> mysql_harness::get_security_descriptor (const std::string &file_name)
 
int mysql_harness::mkdir_wrapper (const std::string &dir, perm_mode mode)