Jump to content

Secure File System [sfs]

utility lua computer

1 reply to this topic

#1 GhastTearz

  • Members
  • 6 posts

Posted 02 May 2017 - 07:37 AM


Hello everyone this is my first post on the forum. I made an api which implements file system permissions on computercraft. I call it sfs and it is a wrapper for the fs api.

How It Works

Using sfs

Download using command: pastebin get ziaDN7Ex sfs
Source at: https://pastebin.com/ziaDN7Ex

Please post on this thread if you find any bugs, and let my know your thoughts on my program :D !

#2 The Crazy Phoenix

  • Members
  • 136 posts
  • LocationProbably within 2 metres of my laptop.

Posted 24 July 2017 - 04:23 PM

Example startup program will crash because "sfs.start" cannot be called with no arguments (attempt to index nil). What's the point of using a table if it only a single field is used?
Use "error(msg, index)" instead of just "error(msg)" to make it easier for users to debug their programs.
The screen appears to flicker when the program is active.
Attempting to run a file with no read access crashes the shell.
It is possible to set the user to root, granting full access regardless of what user was previously set.
getfenv(sfs.setOtherRead).start({userName = "root"})
The environments of other SFS API functions can also be used in that manner.

Edited by The Crazy Phoenix, 24 July 2017 - 04:23 PM.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users