3.0.0
Freundlich's C++ toolkit
Classes | Typedefs | Functions
fcppt::filesystem Namespace Reference

Helper functions for boost::filesystem. More...

Classes

class  directory_range
 A range for directory iterators. More...
 

Typedefs

typedef std::basic_fstream< fcppt::char_typefstream
 Typedef to basic_fstream, depending on fcppt::char_type. More...
 
typedef std::basic_ifstream< fcppt::char_typeifstream
 Typedef to basic_ifstream, depending on fcppt::char_type. More...
 
typedef std::basic_ofstream< fcppt::char_typeofstream
 Typedef to basic_ofstream, depending on fcppt::char_type. More...
 
typedef fcppt::optional::object< boost::uintmax_t > optional_size
 

Functions

FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::system::optional_error_code create_directories_recursive (boost::filesystem::path const &path) FCPPT_PP_WARN_UNUSED_RESULT
 Tries to creates directories recursively. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::system::optional_error_code create_directory (boost::filesystem::path const &path) FCPPT_PP_WARN_UNUSED_RESULT
 Tries to create a directory. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::string create_directory_error (boost::filesystem::path const &path, boost::system::error_code error)
 Returns an error string for a failed create directory operation. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::string extension (boost::filesystem::path const &path)
 Returns the extension of a path as string. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::string extension_without_dot (boost::filesystem::path const &path)
 Returns the extension of a path as string without the dot. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::filesystem::optional_size file_size (boost::filesystem::path const &path)
 Returns the size of a file. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL boost::filesystem::path normalize (boost::filesystem::path const &path)
 Normalizes a path by removing trailing slashes. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL std::size_t num_subpaths (boost::filesystem::path const &path)
 Returns how many sub-paths a path has. More...
 
template<typename Stream >
fcppt::optional::object< Stream > open (boost::filesystem::path const &_path, std::ios_base::openmode const _openmode)
 Opens a file, returning an optional. More...
 
template<typename Stream , typename Exception = fcppt::exception>
Stream open_exn (boost::filesystem::path const &_path, std::ios_base::openmode const _openmode)
 Opens a file, throwing an exception on failure. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::string path_to_string (boost::filesystem::path const &path)
 Turns a path into an fcppt::string. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL boost::filesystem::path remove_extension (boost::filesystem::path const &path)
 Removes the extension from a path. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL boost::filesystem::path replace_extension (boost::filesystem::path const &path, fcppt::string const &new_extension)
 Replaces the extension of a path. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL fcppt::string stem (boost::filesystem::path const &path)
 Returns the stem of a path as a string. More...
 
FCPPT_FILESYSTEM_DETAIL_SYMBOL boost::filesystem::path strip_prefix (boost::filesystem::path const &prefix, boost::filesystem::path const &path)
 Strips a prefix from a path. More...
 

Detailed Description

Helper functions for boost::filesystem.

Typedef Documentation

◆ optional_size