Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
fs.h File Reference
#include <tinyformat.h>
#include <cstdio>
#include <filesystem>
#include <functional>
#include <iomanip>
#include <ios>
#include <ostream>
#include <string>
#include <system_error>
#include <type_traits>
#include <utility>
Include dependency graph for fs.h:

Go to the source code of this file.

Classes

class  fs::path
 Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path::string() method, which have unsafe and unpredictable behavior on Windows (see implementation note in PathToString for details) More...
 
class  fsbridge::FileLock
 

Namespaces

namespace  fs
 Filesystem operations and types.
 
namespace  fsbridge
 Bridge operations to C stdio.
 
namespace  tinyformat
 

Typedefs

using fsbridge::FopenFn = std::function< FILE *(const fs::path &, const char *)>
 

Functions

static path fs::u8path (const std::string &utf8_str)
 
static path fs::absolute (const path &p)
 
static bool fs::exists (const path &p)
 
static auto fs::quoted (const std::string &s)
 
static path fs::operator/ (path p1, const path &p2)
 
static path fs::operator/ (path p1, const char *p2)
 
static path fs::operator+ (path p1, const char *p2)
 
static path fs::operator+ (path p1, path::value_type p2)
 
template<typename T >
static path fs::operator/ (path p1, T p2)=delete
 
template<typename T >
static path fs::operator+ (path p1, T p2)=delete
 
static bool fs::copy_file (const path &from, const path &to, copy_options options)
 
static std::string fs::PathToString (const path &path)
 Convert path object to a byte string. More...
 
static path fs::PathFromString (const std::string &string)
 Convert byte string to path object. More...
 
static bool fs::create_directories (const std::filesystem::path &p)
 Create directory (and if necessary its parents), unless the leaf directory already exists or is a symlink to an existing directory. More...
 
bool fs::create_directories (const std::filesystem::path &p, std::error_code &ec)=delete
 This variant is not used. More...
 
FILE * fsbridge::fopen (const fs::path &p, const char *mode)
 
fs::path fsbridge::AbsPathJoin (const fs::path &base, const fs::path &path)
 Helper function for joining two paths. More...
 
std::string fsbridge::get_filesystem_error_message (const fs::filesystem_error &e)
 
template<>
void tinyformat::formatValue (std::ostream &, const char *, const char *, int, const std::filesystem::path &)=delete
 
template<>
void tinyformat::formatValue (std::ostream &, const char *, const char *, int, const fs::path &)=delete