file?

check if given path exists and corresponds to a file


Parameters

file? path :string

Returns

  • :logical

Examples

copy
if file? "somefile.txt" [ print "file exists!" ]

Related