]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/directories/windows/windows.factor
io.directories: improve file moving words
[factor.git] / basis / io / directories / windows / windows.factor
index bfc7f8a1b4ea6f6d1735847dcb13a93658559cec..16f4724b30fa530115a27966288a0fe6483ba98a 100644 (file)
@@ -17,6 +17,9 @@ M: windows touch-file ( path -- )
 M: windows move-file ( from to -- )
     [ normalize-path ] bi@ MoveFile win32-error=0/f ;
 
+M: windows move-file-atomically ( from to -- )
+    [ normalize-path ] bi@ 0 MoveFileEx win32-error=0/f ;
+
 ERROR: file-delete-failed path error ;
 
 : delete-file-throws ( path -- )