Check that file exists: Difference between revisions

Content added Content deleted
Line 494: Line 494:


=={{header|Arturo}}==
=={{header|Arturo}}==
<lang rebol>checkIfExists: function [file][
<lang rebol>checkIfExists: function [fpath][
if? exists? file [print [file "exists"]]
(or? exists? fpath
else [print [file "doesn't exist"]]
exists? .directory fpath)? -> print [fpath "exists"]
-> print [fpath "doesn't exist"]
]
]