]> gitweb.factorcode.org Git - factor.git/commitdiff
Report which file doesn't get deleted on Windows.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 18 Oct 2011 07:59:57 +0000 (00:59 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 18 Oct 2011 07:59:57 +0000 (00:59 -0700)
basis/io/directories/windows/windows.factor

index 3a69dbfedbddcd32fa903ddba1cc67ad01a0672c..b889f435e41addb3dcd22916299b7970f85f1a08 100644 (file)
@@ -17,8 +17,11 @@ M: windows touch-file ( path -- )
 M: windows move-file ( from to -- )
     [ normalize-path ] bi@ MoveFile win32-error=0/f ;
 
+ERROR: file-delete-failed path error ;
+
 M: windows delete-file ( path -- )
-    normalize-path DeleteFile win32-error=0/f ;
+    [ normalize-path DeleteFile win32-error=0/f ]
+    [ \ file-delete-failed boa rethrow ] recover ;
 
 M: windows copy-file ( from to -- )
     dup parent-directory make-directories