CreateDir and ReadDir failing?

Archives Forums/Linux Discussion/CreateDir and ReadDir failing?

SLotman(Posted 2013) [#1]
Just tried this on Ubuntu 12.04:

Print ReadDir("~~/.config/")
Print CreateDir("~~/.config/Icon Games")


and the result is:

0
0


What's going on? It's not a permission issue, since I even tested the compiled program with superuser access (sudo ./test) and the result was the same...

Is Blitzmax uncapable of reading the ./config folder? That's the path required by the Ubuntu Store to read/write configuration files to.

Edit: Trying ReadDir(chr(126) + "/.config/") has the same results :(


dawlane(Posted 2013) [#2]
Instead of trying to use the short hand (~) for the home folder. Try using the $HOME system variable instead.


SLotman(Posted 2013) [#3]
Yup, just found out how here