Mkdir() failing [SOLVED]
When I call mkdir() as follows:
int e = mkdir(dir, S_IRWXU|S_IRWXG);
char dir = "~/.cfg";
I get the error "No such file or directory"
Why is this?
(QTCreator 2.4.1, Ubuntu 12.04)
This question is not really Qt related but more linux related. AFAIK ~ is not expanded so the path is relative and doesn't exist.
Want to do it the Qt way ? Look at QDir and QStandardPaths
Hope it helps
ok, thanks for the tip.