Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10145: Win2k8R2 specific: boost::filesystem::is_directory() returns false for a directory under C:\Windows\System32 (was: boost::filesystem::is_directory() returns false for a directory in Windows)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-25 14:54:59
#10145: Win2k8R2 specific: boost::filesystem::is_directory() returns false for a
directory under C:\Windows\System32
-------------------------------------------------+-------------------------
Reporter: Martin Ghazaryan | Owner: bemandawes
<martin.ghazaryan@â¦> | Status: new
Type: Bugs | Component: filesystem
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.55.0 | Keywords:
Resolution: |
-------------------------------------------------+-------------------------
Comment (by Martin Ghazaryan <martin.ghazaryan@â¦>):
Changed the summary correspondingly; here're the exact reproduction steps:
{{{
C:\>mkdir C:\Windows\System32\test_dir
Now try to execute the following statements under a debugger:
'is_directory()' always returns false for some weird reason.
boost::filesystem::path dirPath("C:\\Windows\\System32\\test_dir");
bool isDir = boost::filesystem::is_directory(dirPath);
}}}
Note that things work as expected when the directory is created under
'C:\Windows\System', which features permissions identical to
'C:\Windows\System32':
{{{
C:\>mkdir C:\Windows\System\test_dir
'is_directory()' normally returns true when passing over the following
statements:
boost::filesystem::path dirPath("C:\\Windows\\System\\test_dir");
bool isDir = boost::filesystem::is_directory(dirPath);
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10145#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC