Contents

Roo

File.file?

Returns True if this File object is a file. Returns False if it’s a directory.

var d = File("/Users/garry/Desktop")
d.file? # => False

var f = File("/Users/garry/Desktop/test.roo")
f.file? # => True