header_utils
Loading...
Searching...
No Matches
ghassanpl::fs Namespace Reference

Functions

auto absolute (const stdfs::path &path)
 
auto canonical (const stdfs::path &path)
 
auto weakly_canonical (const stdfs::path &path)
 
auto relative (const stdfs::path &p)
 
auto relative (const stdfs::path &p, const stdfs::path &base=stdfs::current_path())
 
auto proximate (const stdfs::path &p)
 
auto proximate (const stdfs::path &p, const stdfs::path &base=stdfs::current_path())
 
auto copy (const stdfs::path &from, const stdfs::path &to) noexcept
 
auto copy (const stdfs::path &from, const stdfs::path &to, stdfs::copy_options options) noexcept
 
auto copy_file (const stdfs::path &from, const stdfs::path &to) noexcept
 
auto copy_file (const stdfs::path &from, const stdfs::path &to, stdfs::copy_options options) noexcept
 
auto copy_symlink (const stdfs::path &from, const stdfs::path &to)
 This is supposed to be noexcept but msvc's impl isn't.
 
auto create_directory (const stdfs::path &p) noexcept
 
auto create_directory (const stdfs::path &p, const stdfs::path &existing_p) noexcept
 
auto create_directories (const stdfs::path &p)
 
auto create_hard_link (const stdfs::path &target, const stdfs::path &link) noexcept
 
auto create_symlink (const stdfs::path &target, const stdfs::path &link) noexcept
 
auto create_directory_symlink (const stdfs::path &target, const stdfs::path &link) noexcept
 
auto current_path ()
 
auto current_path (const stdfs::path &p) noexcept
 
bool exists (stdfs::file_status s) noexcept
 
auto exists (const stdfs::path &p) noexcept
 
auto equivalent (const stdfs::path &p1, const stdfs::path &p2) noexcept
 
auto file_size (const stdfs::path &p) noexcept
 
auto hard_link_count (const stdfs::path &p) noexcept
 
auto last_write_time (const stdfs::path &path) noexcept
 
auto last_write_time (const stdfs::path &path, stdfs::file_time_type new_time) noexcept
 
auto permissions (const stdfs::path &p, stdfs::perms prms) noexcept
 
auto permissions (const stdfs::path &p, stdfs::perms prms, stdfs::perm_options opts=stdfs::perm_options::replace)
 
auto read_symlink (const stdfs::path &p)
 
auto remove (const stdfs::path &p) noexcept
 
auto remove_all (const stdfs::path &p)
 
auto rename (const stdfs::path &from, const stdfs::path &to) noexcept
 
auto resize_file (const stdfs::path &p, uintmax_t size) noexcept
 
auto space (const stdfs::path &p) noexcept
 
auto status (const stdfs::path &p) noexcept
 
auto status_known (stdfs::file_status s) noexcept
 
auto symlink_status (const stdfs::path &p) noexcept
 
auto temp_directory_path ()
 
auto is_block_file (stdfs::file_status s) noexcept
 
auto is_block_file (const stdfs::path &p)
 
auto is_character_file (stdfs::file_status s) noexcept
 
auto is_character_file (const stdfs::path &p)
 
auto is_directory (stdfs::file_status s) noexcept
 
auto is_directory (const stdfs::path &p)
 
auto is_empty (const stdfs::path &p)
 
auto is_fifo (stdfs::file_status s) noexcept
 
auto is_fifo (const stdfs::path &p)
 
auto is_other (stdfs::file_status s) noexcept
 
auto is_other (const stdfs::path &p)
 
auto is_regular_file (stdfs::file_status s) noexcept
 
auto is_regular_file (const stdfs::path &p)
 
auto is_socket (stdfs::file_status s) noexcept
 
auto is_socket (const stdfs::path &p)
 
auto is_symlink (stdfs::file_status s) noexcept
 
auto is_symlink (const stdfs::path &p)
 
void path_append (std::string &to, path const &p)
 As if to /= p
 

Detailed Description

Function Documentation

◆ absolute()

auto ghassanpl::fs::absolute ( const stdfs::path &  path)
inline

Definition at line 21 of file filesystem.h.

◆ canonical()

auto ghassanpl::fs::canonical ( const stdfs::path &  path)
inline

Definition at line 22 of file filesystem.h.

◆ copy() [1/2]

auto ghassanpl::fs::copy ( const stdfs::path &  from,
const stdfs::path &  to 
)
inlinenoexcept

Definition at line 28 of file filesystem.h.

◆ copy() [2/2]

auto ghassanpl::fs::copy ( const stdfs::path &  from,
const stdfs::path &  to,
stdfs::copy_options  options 
)
inlinenoexcept

Definition at line 29 of file filesystem.h.

◆ copy_file() [1/2]

auto ghassanpl::fs::copy_file ( const stdfs::path &  from,
const stdfs::path &  to 
)
inlinenoexcept

Definition at line 30 of file filesystem.h.

◆ copy_file() [2/2]

auto ghassanpl::fs::copy_file ( const stdfs::path &  from,
const stdfs::path &  to,
stdfs::copy_options  options 
)
inlinenoexcept

Definition at line 31 of file filesystem.h.

◆ copy_symlink()

auto ghassanpl::fs::copy_symlink ( const stdfs::path &  from,
const stdfs::path &  to 
)
inline

This is supposed to be noexcept but msvc's impl isn't.

Definition at line 33 of file filesystem.h.

◆ create_directories()

auto ghassanpl::fs::create_directories ( const stdfs::path &  p)
inline

Definition at line 36 of file filesystem.h.

◆ create_directory() [1/2]

auto ghassanpl::fs::create_directory ( const stdfs::path &  p)
inlinenoexcept

Definition at line 34 of file filesystem.h.

◆ create_directory() [2/2]

auto ghassanpl::fs::create_directory ( const stdfs::path &  p,
const stdfs::path &  existing_p 
)
inlinenoexcept

Definition at line 35 of file filesystem.h.

◆ create_directory_symlink()

auto ghassanpl::fs::create_directory_symlink ( const stdfs::path &  target,
const stdfs::path &  link 
)
inlinenoexcept

Definition at line 39 of file filesystem.h.

◆ create_hard_link()

auto ghassanpl::fs::create_hard_link ( const stdfs::path &  target,
const stdfs::path &  link 
)
inlinenoexcept

Definition at line 37 of file filesystem.h.

◆ create_symlink()

auto ghassanpl::fs::create_symlink ( const stdfs::path &  target,
const stdfs::path &  link 
)
inlinenoexcept

Definition at line 38 of file filesystem.h.

◆ current_path() [1/2]

auto ghassanpl::fs::current_path ( )
inline

Definition at line 40 of file filesystem.h.

◆ current_path() [2/2]

auto ghassanpl::fs::current_path ( const stdfs::path &  p)
inlinenoexcept

Definition at line 41 of file filesystem.h.

◆ equivalent()

auto ghassanpl::fs::equivalent ( const stdfs::path &  p1,
const stdfs::path &  p2 
)
inlinenoexcept

Definition at line 44 of file filesystem.h.

◆ exists() [1/2]

auto ghassanpl::fs::exists ( const stdfs::path &  p)
inlinenoexcept

Definition at line 43 of file filesystem.h.

◆ exists() [2/2]

bool ghassanpl::fs::exists ( stdfs::file_status  s)
inlinenoexcept

Definition at line 42 of file filesystem.h.

◆ file_size()

auto ghassanpl::fs::file_size ( const stdfs::path &  p)
inlinenoexcept

Definition at line 45 of file filesystem.h.

◆ hard_link_count()

auto ghassanpl::fs::hard_link_count ( const stdfs::path &  p)
inlinenoexcept

Definition at line 46 of file filesystem.h.

◆ is_block_file() [1/2]

auto ghassanpl::fs::is_block_file ( const stdfs::path &  p)
inline

Definition at line 63 of file filesystem.h.

◆ is_block_file() [2/2]

auto ghassanpl::fs::is_block_file ( stdfs::file_status  s)
inlinenoexcept

Definition at line 62 of file filesystem.h.

◆ is_character_file() [1/2]

auto ghassanpl::fs::is_character_file ( const stdfs::path &  p)
inline

Definition at line 65 of file filesystem.h.

◆ is_character_file() [2/2]

auto ghassanpl::fs::is_character_file ( stdfs::file_status  s)
inlinenoexcept

Definition at line 64 of file filesystem.h.

◆ is_directory() [1/2]

auto ghassanpl::fs::is_directory ( const stdfs::path &  p)
inline

Definition at line 67 of file filesystem.h.

◆ is_directory() [2/2]

auto ghassanpl::fs::is_directory ( stdfs::file_status  s)
inlinenoexcept

Definition at line 66 of file filesystem.h.

◆ is_empty()

auto ghassanpl::fs::is_empty ( const stdfs::path &  p)
inline

Definition at line 68 of file filesystem.h.

◆ is_fifo() [1/2]

auto ghassanpl::fs::is_fifo ( const stdfs::path &  p)
inline

Definition at line 70 of file filesystem.h.

◆ is_fifo() [2/2]

auto ghassanpl::fs::is_fifo ( stdfs::file_status  s)
inlinenoexcept

Definition at line 69 of file filesystem.h.

◆ is_other() [1/2]

auto ghassanpl::fs::is_other ( const stdfs::path &  p)
inline

Definition at line 72 of file filesystem.h.

◆ is_other() [2/2]

auto ghassanpl::fs::is_other ( stdfs::file_status  s)
inlinenoexcept

Definition at line 71 of file filesystem.h.

◆ is_regular_file() [1/2]

auto ghassanpl::fs::is_regular_file ( const stdfs::path &  p)
inline

Definition at line 74 of file filesystem.h.

◆ is_regular_file() [2/2]

auto ghassanpl::fs::is_regular_file ( stdfs::file_status  s)
inlinenoexcept

Definition at line 73 of file filesystem.h.

◆ is_socket() [1/2]

auto ghassanpl::fs::is_socket ( const stdfs::path &  p)
inline

Definition at line 76 of file filesystem.h.

◆ is_socket() [2/2]

auto ghassanpl::fs::is_socket ( stdfs::file_status  s)
inlinenoexcept

Definition at line 75 of file filesystem.h.

◆ is_symlink() [1/2]

auto ghassanpl::fs::is_symlink ( const stdfs::path &  p)
inline

Definition at line 78 of file filesystem.h.

◆ is_symlink() [2/2]

auto ghassanpl::fs::is_symlink ( stdfs::file_status  s)
inlinenoexcept

Definition at line 77 of file filesystem.h.

◆ last_write_time() [1/2]

auto ghassanpl::fs::last_write_time ( const stdfs::path &  path)
inlinenoexcept

Definition at line 47 of file filesystem.h.

◆ last_write_time() [2/2]

auto ghassanpl::fs::last_write_time ( const stdfs::path &  path,
stdfs::file_time_type  new_time 
)
inlinenoexcept

Definition at line 48 of file filesystem.h.

◆ path_append()

void ghassanpl::fs::path_append ( std::string &  to,
path const p 
)
inline

As if to /= p

Definition at line 83 of file filesystem.h.

◆ permissions() [1/2]

auto ghassanpl::fs::permissions ( const stdfs::path &  p,
stdfs::perms  prms 
)
inlinenoexcept

Definition at line 49 of file filesystem.h.

◆ permissions() [2/2]

auto ghassanpl::fs::permissions ( const stdfs::path &  p,
stdfs::perms  prms,
stdfs::perm_options  opts = stdfs::perm_options::replace 
)
inline

Definition at line 50 of file filesystem.h.

◆ proximate() [1/2]

auto ghassanpl::fs::proximate ( const stdfs::path &  p)
inline

Definition at line 26 of file filesystem.h.

◆ proximate() [2/2]

auto ghassanpl::fs::proximate ( const stdfs::path &  p,
const stdfs::path &  base = stdfs::current_path() 
)
inline

Definition at line 27 of file filesystem.h.

◆ read_symlink()

auto ghassanpl::fs::read_symlink ( const stdfs::path &  p)
inline

Definition at line 51 of file filesystem.h.

◆ relative() [1/2]

auto ghassanpl::fs::relative ( const stdfs::path &  p)
inline

Definition at line 24 of file filesystem.h.

◆ relative() [2/2]

auto ghassanpl::fs::relative ( const stdfs::path &  p,
const stdfs::path &  base = stdfs::current_path() 
)
inline

Definition at line 25 of file filesystem.h.

◆ remove()

auto ghassanpl::fs::remove ( const stdfs::path &  p)
inlinenoexcept

Definition at line 52 of file filesystem.h.

◆ remove_all()

auto ghassanpl::fs::remove_all ( const stdfs::path &  p)
inline

Definition at line 53 of file filesystem.h.

◆ rename()

auto ghassanpl::fs::rename ( const stdfs::path &  from,
const stdfs::path &  to 
)
inlinenoexcept

Definition at line 54 of file filesystem.h.

◆ resize_file()

auto ghassanpl::fs::resize_file ( const stdfs::path &  p,
uintmax_t  size 
)
inlinenoexcept

Definition at line 55 of file filesystem.h.

◆ space()

auto ghassanpl::fs::space ( const stdfs::path &  p)
inlinenoexcept

Definition at line 56 of file filesystem.h.

◆ status()

auto ghassanpl::fs::status ( const stdfs::path &  p)
inlinenoexcept

Definition at line 57 of file filesystem.h.

◆ status_known()

auto ghassanpl::fs::status_known ( stdfs::file_status  s)
inlinenoexcept

Definition at line 58 of file filesystem.h.

◆ symlink_status()

auto ghassanpl::fs::symlink_status ( const stdfs::path &  p)
inlinenoexcept

Definition at line 59 of file filesystem.h.

◆ temp_directory_path()

auto ghassanpl::fs::temp_directory_path ( )
inline

Definition at line 60 of file filesystem.h.

◆ weakly_canonical()

auto ghassanpl::fs::weakly_canonical ( const stdfs::path &  path)
inline

Definition at line 23 of file filesystem.h.