That's probably not doable in a crossplatform way. What is a drive on a UNIX like machine?
I'd like to separate the directory for storing data, not in the same directory with the application.
For example, in my project/application, I will let the admin to specify a drive first, like C:\, E:\ or F:\ etc.
And then my project/application will create and give a specific word to name a directory in such above drive.
What should be done to apply for such above matter ?