Boost logo

Boost Users :

From: alice.johnson_at_[hidden]
Date: 2005-07-01 08:21:20


Hi,

I think I've found a problem with this function. On Windows 98/Me
computers, it can fail with path not found error (3) if the from path is on
a network share.

I would suggest the following change to
src\filesystem\operations_posix_windows.cpp:

Currently:

      if ( !::CopyFileA( from_file_ph.string().c_str(),
                      to_file_ph.string().c_str(), /*fail_if_exists=*/true
) )
Suggested change:

      if ( !::CopyFileA( from_file_ph.native_file_string().c_str(),
                      to_file_ph.native_file_string().c_str(),
/*fail_if_exists=*/true ) )

There may be other areas in the filesystem code where it would be better to
use native_file_string().

Alice


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net