The Boost.Filesystem library provides facilities to manipulate files and directories, and the paths that identify them.

learn more…| top users | synonyms

0
votes
0answers
16 views

Error while building boost for android arm architectures

Why am I getting these errors only when building some particular boost libraries like filesystem for arm ?error: no member named 'fgetpos' in the global namespaceerror: no member named 'fsetpos' in ...
1
vote
0answers
18 views

Convert absolute filesystem path to a file URI in a platform-agnostic way

In C++, I'm using boost::filesystem::path to represent a path to an asset. I have logic to build a file URI from this absolute path. I run this code on both Windows and Linux, which has made this a ...
0
votes
1answer
32 views

Can the order of files be changed when iterating a directory using boost::filesystem?

I have inherited some code using boost's directory_iterator:for (directory_iterator fileIt{currDir}; fileIt !=directory_iterator{}; ++fileIt) {// Do stuff with files}and I would like to ...
0
votes
0answers
12 views

How to build the boost modules separately?

I have a project that is using boost/filesystem and I am hoping to include its repository https://github.com/boostorg/filesystem in my project. The reason is because usually different users have ...
1
vote
1answer
28 views

Printing boost path on windows with escaped backslashes

I need to print out a path (stored as boost filesystem path) to file, to be parsed back to path later.The parser expects paths in windows platform to be escaped, so a path likec:\path\to\filewill ...
-2
votes
0answers
38 views

boost::filesystem::basic_directory_iterator constructor

I have developed code for traversing file and directory and insert into database. 1. How to handle Abort into flow without breaking flow2. skip softlink traversevoid Dirs::scan_dir(string dir_name,...
2
votes
1answer
26 views

handling files with multiple “.” in filename boost::filesystem::stem

If filename is "abc.def.xyz", how do I get ".def.xyz" as extension and "abc" as stem. I understand boost::filesystem::stem/extension() considers the right most "." as the delimiter between file name ...
1
vote
1answer
58 views

How to replace the base parameter removed from boost::filesystem::weakly_relative and std::filesystem::canonical

The function boost::filesystem::canonical() (doc of 1.66, doc of current release) offers two arguments (ignoring the error code overload) base. The first one is the path to canonicalize, the second ...
1
vote
1answer
37 views

Get the size of the directory having unicode filenames in c++

I want to calculate the size(in bytes) of a directory, here is my algorithm using boost::filesystem#include <boost/filesystem.hpp>#include <string>#include <functional>using ...
0
votes
0answers
27 views

Storing an auto specified variable into a string variable?

I'm sorry if my terminology might be wrong but I have an example code here using the "filesystem" library where it displays all the directory contents and its sub-contents using a for loop and it uses ...
0
votes
0answers
279 views

Error LNK1104 cannot open file 'libboost_filesystem-vc141-mt-gd-1_65_1.lib'

I cannot seem to solve this issue. I would like to use boost but continue to get the error LNK1104 cannot open file 'libboost_filesystem-vs141-mt-gd-1_65_1.lib'. I have followed the steps i.e: 1. ...
1
vote
0answers
77 views

Boost filesystem libraries don't work in debug mode

I'm working on this little project which use boost:filesystem library. The problem is that boost:filesystem:path doesn't seem to work correctly in debug mode. Whenever I try to create a path object ...
0
votes
1answer
51 views

boost/filesystem.hpp not linking in osx boost installed via homebrew

I installed boost via$ brew install boostIn xcode I have specified /usr/local/Cellar/boost/1.65.1/includein my header search path and /usr/local/Cellar/boost/1.65.1/lib in my library ...
10
votes
1answer
191 views

Why do boost::filesystem::path and std::filesystem::path lack operator+?

Consider the following assertions about path decomposition, where each local variable e.g. stem has the obvious initialization e.g. auto stem=path.stem() —assert(root_path==root_name / ...
2
votes
1answer
76 views

Sort subfolders and filenames of a directory numerically using boost::filesystem

I am using the same example as in the boost tutorials. But since my file names are numbered (1,20,23,..). The code fails to compare the strings(ex. 20 < 7). Is there a way to compare the ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,