]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/tools/copy/copy.factor
io.files: exists? -> file-exists? and rename primitive.
[factor.git] / extra / tools / copy / copy.factor
index cf2dbd853abf1a05404626ac0a47e24eca20ef7c..523e1212872c3c805b5bef84ac696ce81000947a 100644 (file)
@@ -15,7 +15,7 @@ IN: tools.copy
     [ unclip-last copy-files-into ] [ drop usage ] if ;
 
 : copy-to-file ( args -- )
-    dup last { [ exists? ] [ file-info directory? ] } 1&&
+    dup last { [ file-exists? ] [ file-info directory? ] } 1&&
     [ copy-to-dir ] [ first2 copy-file ] if ;
 
 : run-copy ( -- )