Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5474: filesystem::is_directory throws an excetion when the volume does not exist
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-20 01:54:42
#5474: filesystem::is_directory throws an excetion when the volume does not exist
------------------------------------------------+---------------------------
Reporter: Bela Babik <bela.babik@â¦> | Owner: bemandawes
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: filesystem
Version: Boost Development Trunk | Severity: Problem
Resolution: wontfix | Keywords:
------------------------------------------------+---------------------------
Comment (by Bela Babik <bela.babik@â¦>):
"This looks like an error to me, and not something that should be swept
under the rug. Thus I'm going to close it as wontfix."
The library does not throw an exception on Linux systems when a directory
does not exists because a volume is not mounted. This is the same
situation, the drive is not present (or the filesystem can not be used by
the OS).
is_directory("M:\slalala") throws and exception on Windows when M: is not
mounted, is_directory("/mnt/vol1/slalala") does not on Linux.
I think the behaviour is inconsistent.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5474#comment:2> 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:06 UTC