]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/geo-ip/geo-ip.factor
io.files: exists? -> file-exists? and rename primitive.
[factor.git] / extra / geo-ip / geo-ip.factor
index 4da5894179a07ba61f89bdc2788628c5bad202d8..cf814e5c5ebbf574ccbeb13c8e7d4da0a6e54074 100644 (file)
@@ -11,7 +11,7 @@ IN: geo-ip
 CONSTANT: db-url "http://software77.net/geo-ip/?DL=1"
 
 : download-db ( -- path )
-    db-path dup exists? [
+    db-path dup file-exists? [
         db-url over ".gz" append download-to
         { "gunzip" } over ".gz" append absolute-path suffix try-process
     ] unless ;