Skip to content

Archmage.FileAccessFS

Reads files with FileAccess. This is the default file system of the loader.

Inherits: Archmage.FS

Paths can be res:// paths, user:// paths or absolute paths of the operating system, and files in mounted resource packs can be read too. Mount resource packs before loading starts.

func read_file(path: String) -> Variant

Implements Archmage.FS.read_file().

func file_exists(path: String) -> bool

Overrides Archmage.FS.file_exists().

func dir_exists(path: String) -> bool

Always returns true for res:// paths, because DirAccess does not report them reliably after the project is exported or a resource pack is mounted.