exists?

check if file/directory at given path exists


Parameters

exists? path :string

Returns

  • :logical

Examples

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

Related