sys.FileSystem.exists() fails with Invalid_argument("index out of bounds") when argument does not contain a path
class Main
{
macro static function test() {
var isThere = sys.FileSystem.exists("x");
return macro $v{ isThere };
}
static function main()
{
var it = test();
trace(it);
}
}