Directory

Author

F43nd1r

Since

4.9.1

Entries

Link copied to clipboard

Legacy behaviour: If the string starts with a path separator, this behaves like ROOT. Otherwise it behaves like FILES.

Link copied to clipboard

Directory returned by Context.getFilesDir

Link copied to clipboard

Directory returned by Context.getExternalFilesDir Note: Additional permissions may be required.

Link copied to clipboard

Directory returned by Context.getCacheDir

Link copied to clipboard

Directory returned by Context.getExternalCacheDir Note: Additional permissions may be required.

Link copied to clipboard

Directory returned by Context.getNoBackupFilesDir. Will fall back to Context.getFilesDir on API < 21

Link copied to clipboard

Directory returned by Environment.getExternalStorageDirectory Note: Additional permissions may be required.

Link copied to clipboard

Root Directory, paths in this directory are absolute paths

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getFile(context: Context, fileName: String): File
Link copied to clipboard
fun valueOf(value: String): Directory

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.