(if (empty? (io:listFiles "path/to/folder")) (print "empty") (print "has files"))