fix and clarify prior change

[SVN r19108]
This commit is contained in:
Beman Dawes
2003-07-14 11:54:48 +00:00
parent 9411f851df
commit 755ee89447

View File

@@ -362,6 +362,9 @@ namespace boost
// shall fail and set errno to EEXIST or ENOTEMPTY."
// Linux uses ENOTEMPTY, Solaris uses EEXIST.
if ( error == EEXIST ) error = ENOTEMPTY;
boost::throw_exception( filesystem_error(
"boost::filesystem::remove", ph, error ) );
}
# else
if ( is_directory( ph ) )
{
@@ -373,12 +376,11 @@ namespace boost
else
{
if ( !::DeleteFileA( ph.string().c_str() ) )
int error = fs::detail::system_error_code();
# endif
boost::throw_exception( filesystem_error(
"boost::filesystem::remove",
ph, error ) );
ph, fs::detail::system_error_code() ) );
}
# endif
return true;
}
return false;