ferttimes.blogg.se

Computercraft file peek
Computercraft file peek







computercraft file peek

File data is represented by a string with the data while directory data is represented as a table with the same format as the root directory.Īrchives returned by the library are represented as filesystem objects with the same methods as the fs library, with two extra methods: write(path) writes the archive to a file, and extract(path) extracts the file in the archive to a directory. FormatĪrchives are gzipped serialized Lua tables with the file name as the key and the file/directory data as the value. Library for creating ComputerCraft-friendly archives. only replace files that are newer than current archive contents do not warn if the library had to be created R - replace existing or insert new file(s) into the archive path: The absolute path of the ar file to saveįunctions similarly to GNU/BSD ar, with the following options:.data: The list of file entries to write.nil ar.save( table data, string path): Writes a list of file entries to an ar archive.Returns: A list of file entries that can be used by ar.save().path: The absolute path to the directory to load.table ar.pack( string path): Loads files in a directory into a list of ar entries.Returns: An ar file entry with the contents of the file.

computercraft file peek

path: The absolute path to the file to load.table ar.read( string path): Reads a file into an ar file entry.path: The absolute path to the output directory.archive: Either an archive loaded with ar.load() or the absolute path to an archive.nil ar.extract( table/string archive, string path): Writes an entire archive to a directory.path: The absolute path to the output file.

computercraft file peek

  • entry: A file entry as loaded with ar.load().
  • nil ar.write( table entry, string path): Writes an ar file entry to a file.
  • number mode: The octal file permissions of the file.
  • number group: The GID of the file owner.
  • number owner: The UID of the file owner.
  • number timestamp: The UNIX timestamp of the last modified time.
  • Returns: A list of file entries with the format:.
  • path: The absolute path to an ar archive.
  • table ar.load( string path): Loads an archive into a file.
  • Program & library for accessing *.a files. Everything in this repository is under public domain unless otherwise specified, though it would be nice if you link back to this repo if you use one of the libraries. All libraries should be loaded with require(). Various archiving/compression programs and libraries for ComputerCraft.









    Computercraft file peek