Opened 6 years ago

Last modified 6 years ago

#12746 new Bugs

boost::filesystem::canonical fails for network paths on windows/inconsistent behavior

Reported by: Rob.Conde@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

if you do:

boost::system::error_code ec;

path myPath = canonical(path("

mynetworkmachine
somepath
somefile.txt"),ec);

ec.m_val will be 161

Additionally, it does not throw an exception when using the exception form of the call.

Change History (1)

comment:1 by anonymous, 6 years ago

Trying to fix formatting:

if you do:

boost::system::error_code ec;

path myPath = canonical(path("\\\\mynetworkmachine\\somepath\\somefile.txt"),ec);

ec.m_val will be 161

Additionally, it does not throw an exception when using the exception form of the call.

Note: See TracTickets for help on using tickets.