Contents

Roo

File.directory?

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

var d = File("/Users/garry/Desktop")
d.directory? # => True

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