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.
Methods
Section titled “Methods”read_file()
Section titled “read_file()”func read_file(path: String) -> VariantImplements Archmage.FS.read_file().
file_exists()
Section titled “file_exists()”func file_exists(path: String) -> boolOverrides Archmage.FS.file_exists().
dir_exists()
Section titled “dir_exists()”func dir_exists(path: String) -> boolAlways returns true for res:// paths, because DirAccess does not report them reliably after the project is exported or a resource pack is mounted.