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: | 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.
Note:
See TracTickets
for help on using tickets.

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.