G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

Cross-platform filepaths for config and log #135

Closed achilleas-k closed 6 years ago

achilleas-k commented 6 years ago

Using platform specific filepaths for config and log directories.

If files are found in the old locations, they are moved to the new ones. The user is notified of any changes. This will be removed in a future version.

For the config directory, all files are moved to the new location. If filename conflicts occur (e.g., a config or key file already exists in the new config directory), a suffix (.old.#) is appended and incremented accordingly and a message is included in the notice for the user.

For logs, the old directory ($HOME/.local/share/gin/) is moved into the new one as a subdirectory and renamed to old-logs-YYYY-MM-DD.

Closes #42