This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Geforce Fan's profile picture

[Solved][FS][Lua]Fs.combine - What does it do, and how does it work

Started by Geforce Fan, 13 December 2014 - 10:29 PM
Geforce Fan #1
Posted 13 December 2014 - 11:29 PM
/title. I need to know how fs.combine works, and what it really does. I'm working on a networked storage program and need to know how the default fs.combine so I can rewrite it to work with the network accordingly. I have no understanding of what the function currently does and the wiki does not help.
Thanks in advance.
Edited on 13 December 2014 - 11:20 PM
KingofGamesYami #2
Posted 13 December 2014 - 11:37 PM

print( fs.combine( "rom", "test" ) )
Result:

rom/test

You can put "/" in front of rom, after rom, before test, after test, etc. and it will still come out with "rom/test"
Geforce Fan #3
Posted 13 December 2014 - 11:42 PM
I removed my current rewrite of fs.combine and tested it just for fun to find it worked ._.
I guess that's irony. Thanks anyway.