Skip to content

sys.FileSystem.exists() fails in macro #6481

@AdrianV

Description

@AdrianV

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);
        }
        
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions