package directories
Type Members
-
final
class
BaseDirectories extends AnyRef
BaseDirectoriesprovides paths of user-invisible standard directories, following the conventions of the operating system the library is running on.BaseDirectoriesprovides paths of user-invisible standard directories, following the conventions of the operating system the library is running on.To compute the location of cache, config or data directories for individual projects or applications, use
ProjectDirectoriesinstead.Examples
All examples on this page are computed with a user named Alice.
Example of
ProjectDirectories#configDirvalue in different operating systems:- Linux/BSD:
/home/alice/.config - macOS:
/Users/Alice/Library/Preferences - Windows:
C:UsersAliceAppDataRoaming
- Linux/BSD:
-
final
class
ProjectDirectories extends AnyRef
ProjectDirectoriescomputes the location of cache, config or data directories for a specific application, which are derived from the standard directories and the name of the project/organization.ProjectDirectoriescomputes the location of cache, config or data directories for a specific application, which are derived from the standard directories and the name of the project/organization.Examples
All examples on this page are computed with a user named Alice, and a
ProjectDirectoriesinstance created with the following information:ProjectDirectories.from("com", "Foo Corp", "Bar App")Example of
ProjectDirectories#configDirvalue in different operating systems:- Linux/BSD:
/home/alice/.config/barapp - macOS:
/Users/Alice/Library/Preferences/com.Foo-Corp.Bar-App - Windows:
C:UsersAliceAppDataRoamingFoo CorpBar App
- Linux/BSD:
- class UnsupportedOperatingSystemException extends UnsupportedOperationException
-
final
class
UserDirectories extends AnyRef
UserDirectoriesprovides paths of user-facing standard directories, following the conventions of the operating system the library is running on.UserDirectoriesprovides paths of user-facing standard directories, following the conventions of the operating system the library is running on.Examples
All examples on this page are computed with a user named Alice.
Example of
UserDirectories#audioDirvalue in different operating systems:- Linux/BSD:
/home/alice/Music - macOS:
/Users/Alice/Music - Windows:
C:UsersAliceMusic
- Linux/BSD: