SHARE
TWEET

filesystem_doc.tmp

a guest Jan 22nd, 2020 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >> Метод: makeDirectory
  2. Документация: function(path:string):boolean -- Creates a directory at the specified absolute path in the file system. Creates parent directories, if necessary.
  3. >> Метод: slot
  4. Документация: 5
  5. >> Метод: seek
  6. Документация: function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.
  7. >> Метод: list
  8. Документация: function(path:string):table -- Returns a list of names of objects in the directory at the specified absolute path in the file system.
  9. >> Метод: getLabel
  10. Документация: function():string -- Get the current label of the drive.
  11. >> Метод: write
  12. Документация: function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.
  13. >> Метод: type
  14. Документация: filesystem
  15. >> Метод: exists
  16. Документация: function(path:string):boolean -- Returns whether an object exists at the specified absolute path in the file system.
  17. >> Метод: rename
  18. Документация: function(from:string, to:string):boolean -- Renames/moves an object from the first specified absolute path in the file system to the second.
  19. >> Метод: address
  20. Документация: d6dc6ac1-8a5b-483a-b048-c8d77475d176
  21. >> Метод: close
  22. Документация: function(handle:userdata) -- Closes an open file descriptor with the specified handle.
  23. >> Метод: fsnode
  24. Документация: table: 0x7f7900113e60
  25. >> Метод: size
  26. Документация: function(path:string):number -- Returns the size of the object at the specified absolute path in the file system.
  27. >> Метод: isDirectory
  28. Документация: function(path:string):boolean -- Returns whether the object at the specified absolute path in the file system is a directory.
  29. >> Метод: isReadOnly
  30. Документация: function():boolean -- Returns whether the file system is read-only.
  31. >> Метод: spaceUsed
  32. Документация: function():number -- The currently used capacity of the file system, in bytes.
  33. >> Метод: setLabel
  34. Документация: function(value:string):string -- Sets the label of the drive. Returns the new value, which may be truncated.
  35. >> Метод: spaceTotal
  36. Документация: function():number -- The overall capacity of the file system, in bytes.
  37. >> Метод: read
  38. Документация: function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.
  39. >> Метод: remove
  40. Документация: function(path:string):boolean -- Removes the object at the specified absolute path in the file system.
  41. >> Метод: open
  42. Документация: function(path:string[, mode:string='r']):userdata -- Opens a new file descriptor and returns its handle.
  43. >> Метод: lastModified
  44. Документация: function(path:string):number -- Returns the (real world) timestamp of when the object at the specified absolute path in the file system was modified.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top