Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.
/ appdirs Public archive

AppDirs provides cross platform access to the special folders/directories like application data.

License

Notifications You must be signed in to change notification settings

GitAntoinee/appdirs

Repository files navigation

AppDirs

AppDirs provides cross platform access to the special folders/directories like application data.

Benefits

  • AppDirs is written in Kotlin/MultiPlatform, who let you to use it not only in Kotlin/JVM!
  • Usage is pretty easy and do not change between platforms (see examples below)

Usage

The usage is very straightforward

// Find appdata folder
val appdata = AppDirs.getUserConfigDir("Program name", "Program version", "Program author (you!)")

More functions are available in the same manner (followed by an example in Kali Linux):

  • getUserDataDir (/home/user/.local/share/author/program/1.0)
  • getUserConfigDir (/home/user/.config/author/program/1.0)
  • getUserCacheDir (/home/user/.cache/author/program/1.0)
  • getUserLogDir (/home/user/.cache/author/program/1.0/logs)
  • getSiteDataDir (/etc/xdg)
  • getSiteConfigDir (/usr/share/author/program/1.0)

About

AppDirs provides cross platform access to the special folders/directories like application data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages