boost-filesystem
boost::filesystem::path::append (via iterators) causes compiler error
I\'m trying to generate new path using boost::filesystem as follows #include <iostream> #include <string>[详细]
2023-04-13 00:52 分类:问答Why does boost::filesystem is_directory return different results when run as a Windows Service?
I have some code that iterates through files in a directory and does useful things with the non-directory files, like so:[详细]
2023-04-12 20:46 分类:问答Directories created by boost::filesystem::create_directories() not immediately accessible?
I am using boost::filesystem::create_directories() to create new directories. When I try to access these directories shortly after creation, I get an error saying: no such directory. But if I sleep fo[详细]
2023-03-29 10:27 分类:问答How to check for new files in the directory?
Given: filesystem::path toDir(\"./\"); ptime oldTime; ptime now(second_clock::local_time()); How can I determine which files were created in the time period between oldTime and now?[详细]
2023-03-27 20:01 分类:问答boost::copy_file copy_option to skip over existing destination file?
I would like to copy a file to an other, and I would like to use Boost::copy_file. It has a paramether called copy_option which can be:[详细]
2023-03-20 05:24 分类:问答Using boost::iostreams::mapped_file_source with wide character strings
If I instantiate a mapped_file_source (boost 1.46.1 ) with a narrow character string as in the following I don\'t have a problem:[详细]
2023-03-19 16:46 分类:问答Why such theoretically crossplatform code does not change Enviromental variable on Windows?
So I try next code: #include <iostream> #include <cstring> #include <cstdlib> #include <sstream>[详细]
2023-03-17 07:04 分类:问答Problem linking Boost.Filesystem statically to a shared library
I\'m building a shared library with GCC 4.5.2 and Boost 1.46.1 (compiled with --build-type=complete) and this is a command from Makefile which does the linkage part:[详细]
2023-03-13 18:20 分类:问答Boost.Filesystem crashes
Does anyone had this problem ? When searching a partition with recursive_directory_iterator, when it reaches the end it crashes.[详细]
2023-03-11 20:40 分类:问答C++: Boost: Need help with directory navigation logic
So, I\'m trying to change my directory to save files, and then change back to the directory I was previously in.[详细]
2023-03-04 01:06 分类:问答