Top "Boost-filesystem" questions

The Boost.

boost::filesystem::path and std::string

I have a String class which has a member std::string. One of the constructor is String (std::string s) { // …

c++ boost path boost-filesystem
Get an ordered list of files in a folder

I have used boost::filesystem::directory_iterator in order to get a list of all the available files into a …

c++ boost boost-filesystem
How to create a folder in the home directory?

I want to create a directory path = "$HOME/somedir". I've tried using boost::filesystem::create_directory(path), but it fails …

c++ boost directory boost-filesystem system-variable
Why does boost::filesystem::canonical() require the target path to exist?

The documentation for boost::filesystem::canonical(const path& p) states: Overview: Converts p, which must exist, to an absolute …

c++ boost boost-filesystem c++17
Boost cannot open file, 'libboost_filesystem-vc100-mt-gd-1_47.lib'

I have googled the error for hours on end now and have not gotten much of anywhere. I have linked …

c++ boost boost-filesystem
C++ Boost Filesystem: How to modify stem from a path?

I'm using the Boost Filesystem library. I have a path boost::filesystem::path P("/foo/bar.baz"); I want to …

c++ boost boost-filesystem
Extract the parent folder of a directory using boost::filesystem

Suppose I have the following folder std::string m("C:\MyFolderA\MyFolderB\MyFolderC"); boost::filesystem::path p(m); Is there …

c++ boost-filesystem
Should boost::filesystem::exists really throw an exception for removable media device with no media?

I've run into a bit of an odd circumstance while using boost::filesystem::exists. If you attempt to check for …

c++ boost boost-filesystem
how to use C++ to get the folder/directory name, but not the path of one file? Especially boost::filesystem;

std::string file="C:\\folder1\\folder2\\folder3.txt"; fs::path file_path(file); fs::path file_dir=file_path.parent_…

c++ boost-filesystem
Invalid cross-device link error with boost filesystem

I am trying to move a file from a location to another using boost::filesystem. I used boost::filesystem::rename …

c++ linux boost-filesystem