You are not logged in.
How do you create a directory for a program at $HOME like .mpd?
Is this done in the program or through make? I was looking at the 'mkdir' function provided by 'sys/stat.h', but I could never for some reason have the directory have correct.
Last edited by Hspasta (2012-01-11 02:37:37)
Offline
Most programs I have seen do it from with in the program. What happens when a user wants to start from scratch with your program and rm's the directory?
I looked at some of my code and realized I was writing in Qt which has some nice classes dedicated to this function. This is not a new problem, I might suggest you look around and see if there exist libraries you might use, rather than re-invent the wheel.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Last edited by stqn (2012-01-09 13:14:14)
Offline
Thanks for the help!
Offline