Struct Resource

Constructors

Name Description
this
this Creates a Resource from the given filepath.

Properties

Name Type Description
baseFileName [get] string The name of the file without its extension.
directory [get] string The path to the directory containing the file.
extension [get] string The extensino of the file.
fileName [get] string The name of the file with its extension.
fullPath [get] string The full path to the file.
relativePath [get] string The relative path from the executable to the file.

Methods

Name Description
exists Checks if the file still exists.
getFile Converts to a std.stdio.File
needsRefresh Checks if the file has been modified since it was last loaded.
opAssign
read Read the contents of the file.
readText Read the contents of the file.

Authors

Copyright

License