ChanServ changed the topic of #yab to: yab | yet another Basic for HAIKU || Homepage: https://yab.besly.de || Github: https://github.com/lorglas || Forum: http://yab.orgfree.com/forum/ || Logs: https://oftc.irclog.whitequark.org/yab
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
bbjimmy has joined #yab
_-Caleb-_ has joined #yab
_-Caleb-_ has quit [Read error: Connection reset by peer]
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
bbjimmy has joined #yab
lorglas has joined #yab
<lorglas> @ _-Caleb-_
<lorglas> some code from us for testing
<lorglas>
<lorglas> //Check if a file or folder already exisits
<lorglas> sub IfExists(filename$)
<lorglas> return not system("test -e "+filename$)
<lorglas> end sub
<lorglas>
<lorglas> sub IfFile(filename$)
<lorglas> return not system("test -f "+filename$)
<lorglas> end sub
<lorglas>
<lorglas> sub IfSymbolicLink(filename$)
<lorglas> return not system("test -L "+filename$)
<lorglas> end sub
<lorglas>
<lorglas> sub IfDirectory(filename$)
<lorglas> return not system("test -d "+filename$)
<lorglas> end sub
lorglas has quit [Quit: Vision[]: i've been blurred!]
<bbjimmy> lorglas you should make this a yab library and document it.