$darkmode
path.hpp File Reference
#include <filesystem>
#include <limits>
#include <string>
#include <utility>
#include <fable/fable_fwd.hpp>
#include <fable/schema/interface.hpp>
#include <fable/utility/path.hpp>
Include dependency graph for path.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fable::schema::is_path< T >
 
struct  fable::schema::is_path< std::filesystem::path >
 
class  fable::schema::Path< T >
 

Enumerations

enum class  fable::schema::PathState {
  Any , Absent , Exists , Executable ,
  FileExists , DirExists , NotFile , NotDir
}
 

Functions

template<typename T , typename S , std::enable_if_t< is_path_v< T >, bool > = true>
Path< T > fable::schema::make_schema (T *ptr, S &&desc)
 

Variables

template<typename T >
constexpr bool fable::schema::is_path_v = is_path<T>::value
 

Detailed Description

Enumeration Type Documentation

◆ PathState

State represents valid states a path can be in relative to the filesystem.

Enumerator
Absent 

any valid path

Exists 

path does not exist

Executable 

path exists

FileExists 

path exists in search path or locally and has executable permission

DirExists 

path exists and is a file

NotFile 

path exists and is a directory

NotDir 

path does not exist or is a directory