From 755ee89447622677dbcfb68de8d1fa100ebc3f45 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Mon, 14 Jul 2003 11:54:48 +0000 Subject: [PATCH] fix and clarify prior change [SVN r19108] --- src/operations_posix_windows.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/operations_posix_windows.cpp b/src/operations_posix_windows.cpp index 2171af8..6bfe162 100644 --- a/src/operations_posix_windows.cpp +++ b/src/operations_posix_windows.cpp @@ -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;