exists?

check if given file exists


Parameters

exists? file :string

Attributes

directorycheck for directory

Returns

  • :logical

Examples

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

Related