Where should I create the folders/files that the java application I'm developing needs to interact with? Is there a standard place or at least a place that makes the most sense? I was thinking the ${home}
or usr/local/share
or user/share/
directories perhaps, but there may be a better place.
For example suppose my application needs to create a ftp outbound folder to write csv files to.
Ideally, the folder that it creates should have the following characteristics:
- It should exist on both Mac and Linux, (as a bonus, Windows would be nice too)
- It should be referenceable by a common env variable
- It should not be visible to the common user so that they cannot tamper with it
- It should be have read/write permissions by default, without needing to chmod or chown it.
- The file should remain untouched after multiple deployents
Is there such a folder?
Aucun commentaire:
Enregistrer un commentaire