[filesystem] Is it a bug or not
Hi!
On my Windows computer I have cygwin installed and it created the following file names in
directory c:\
%backup%~
.emacs
.emacs~
.tcltcinfo.txt
The last file was created by some cygwin app.
Now if I try to iterate through this directory:
for(fs::directory_iterator dir_itr( full_path ), end_iter; dir_itr != end_iter; ++dir_itr)
{
try
{
if(!fs::is_directory(*dir_itr))
{
std::pair
Hi! Ovanes Markarian schrieb:
Exceptions are thrown:
%backup%~ boost::filesystem::path: invalid name "%backup%~" in path: "%backup%~" .emacs boost::filesystem::path: invalid name ".emacs" in path: ".emacs" .emacs~ boost::filesystem::path: invalid name ".emacs~" in path: ".emacs~" .tcltcinfo.txt boost::filesystem::path: invalid name ".tcltcinfo.txt" in path: ".tcltcinfo.txt"
Have you tried to get the native_file_name instead? Maybe this will allow '%' in names. Frank
participants (2)
-
Frank Birbacher
-
Ovanes Markarian