Table of Contents
The Archive type represents an archive (wad/pk3/etc) in SLADE.
Functions
getFilename
Parameters
booleanfull: Whether to return the full path to the file
Returns the filename of the archive. If full is true, the full path will be returned, otherwise just the filename.
allEntries
Returns ArchiveEntry array
Returns an array of all entries in the archive.
getDir
Parameters
stringpath: The path of the directory to get
Returns ArchiveDir
Returns the directory in the archive at path, or null if the path does not exist. If the archive does not support directories (eg. Doom Wad format) the 'root' directory is always returned, regardless of path.
createEntry
Parameters
stringfull_path: The full path and name of the entry to createnumberposition: The position to insert the entry
Returns ArchiveEntry
Description required
createEntryInNamespace
Parameters
stringname: The name of the entrystringnamespace: The namespace to add the entry to
Returns ArchiveEntry
Description required
removeEntry
Parameters
ArchiveEntryentry: The entry to remove
Returns boolean
Removes the given entry from the archive (but does not delete it). Returns false if the entry was not found in the archive.
renameEntry
Parameters
ArchiveEntryentry: The entry to renamestringname: The new name for the entry
Returns boolean
Renames the given entry. Returns false if the entry was not found in the archive.
Latest Release: 3.2.4
Home | Downloads | Tutorials | Wiki Index | SLADE Homepage