]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/mason/docs-update/docs-update.factor
io.files: exists? -> file-exists? and rename primitive.
[factor.git] / extra / webapps / mason / docs-update / docs-update.factor
index 438e916d3e4bb9e3dcb7f8df82d123e028afc88c..d28ea88fa874e09250547bcefc34b235e212d124 100644 (file)
@@ -11,16 +11,16 @@ IN: webapps.mason.docs-update
 
 : update-docs ( -- )
     home [
-        "newdocs" exists? [ "newdocs" delete-tree ] when
+        "newdocs" file-exists? [ "newdocs" delete-tree ] when
 
         "newdocs" make-directory
         "newdocs" [ { "tar" "xfz" } docs-path suffix try-process ] with-directory
 
-        "docs" exists? [ "docs" "docs.old" move-file ] when
+        "docs" file-exists? [ "docs" "docs.old" move-file ] when
         "newdocs/docs" "docs" move-file
 
         "newdocs" delete-directory
-        "docs.old" exists? [ "docs.old" delete-tree ] when
+        "docs.old" file-exists? [ "docs.old" delete-tree ] when
 
         \ load-index reset-memoized
     ] with-directory ;