Expand description
File operations: create, add, delete, move, extract, decode and save files of the open packs, and read files from every data source.
EnumsΒ§
- Decoded
File - Result of decoding a file.
ConstantsΒ§
- FOLDER_
FILES_ πIN_ ERRORS - Maximum amount of files of a folder listed in the error of reading it as a file.
- UNDECODEABLE_
FILE_ πTYPES - File types the server never tries to decode.
FunctionsΒ§
- container_
path π - Returns a path as a file path if
has_filesays thereβs a file at it, or as a folder path otherwise. - decode π
- Decodes a file, skipping the types the server doesnβt decode.
- decoded_
anim_ πpack - Decodes an AnimPack file, returning its decoded data.
- duplicate_
path π - Returns a path for a copy of a file, incrementing the trailing number of its name until itβs free.
- import_
asskit_ πtable - Imports a table from the Assembly Kit as a new file, or
Noneif it canβt be imported. - insert_
files π - Inserts files into a pack, returning the paths of the ones inserted.
- loaded_
files_ πby_ paths - Returns copies of the files of a pack at the provided paths, with their data loaded in memory.
- pack_
key_ πand_ data_ source - Returns the key of the pack of a file source (empty for other sources), and its data source.
- paste_
entries_ πfrom_ paths - Expands the selected paths of a pack into entries to paste, one per file.
- raw_
paths π - Returns the raw paths of container paths.
- split_
found π - Resolves paths into container paths, splitting out the ones that match no file.
- writable_
file π - Returns a file of an open pack, the game files or the parent packs, mutably.
Type AliasesΒ§
- Paths
ByPack - Paths of files, by the key of their pack.