I'm trying to create a function that replaces fs.open but even if I strip it down to very basic code, it still doesn't work. After running this, when I use any FS function it has a java out of bounds error.
old = fs function test(path, mode) han = old.open(path, mode) return han end fs.open = test
Any help is appreciated! Thank you in advanced












