Simox  2.3.74.0
simox::fs Namespace Reference

Functions

std::vector< path > list_directory (const path &directory, bool local=false, bool sort=true)
 List the entries in directory directory. More...
 
std::filesystem::path make_relative (std::filesystem::path a_From, std::filesystem::path a_To)
 Return path when appended to a_From will resolve to same as a_To. More...
 
fs::path remove_trailing_separator (fs::path p)
 

Function Documentation

◆ list_directory()

std::vector< fs::path > simox::fs::list_directory ( const path &  directory,
bool  local = false,
bool  sort = true 
)

List the entries in directory directory.

Parameters
directoryPath to the directory.
localIf true, returned paths are relative to directory. If false, the entries are prepended by directory.
sortIf true, entries are sorted alphatically.
Returns
The entries in directory.

◆ make_relative()

std::filesystem::path simox::fs::make_relative ( std::filesystem::path  a_From,
std::filesystem::path  a_To 
)
inline

Return path when appended to a_From will resolve to same as a_To.

◆ remove_trailing_separator()

fs::path simox::fs::remove_trailing_separator ( fs::path  p)
inline