I know that I can use System.getProperty(“user.home”) gets the default home for files and is usually where I put my property files for my applications. But I want a more “discrete” location for my files so that library won’t get cluttered (since that library is usually seen by the user). Does anybody know how I can get a directory like that?
I know that I can use System.getProperty(user.home) gets the default home for files and
Share
You could create a folder where the name starts with ‘.’ so that it won’t be shown in the Finder by default. For example
System.getProperty("user.home")+"/.mydocs";On Unix systems, by default, folders with a name starting with a ‘.’ are hidden.