StrictMode

open class StrictMode

Provides strict mode equivalents to methods in FileUtil. Strict mode methods will be executed in an io thread, blocking the calling thread until the operation is complete.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun delete(path: File): Boolean
Deletes a file or folder, even if the folder is not empty.
Link copied to clipboard
open fun exists(path: String): Boolean
Checks if specified path points to a file/directory that exists on the local filesystem.
Link copied to clipboard
open fun getExternalDirectory(context: Context, folderType: String, name: String): File
Gets the path to a directory on the primary shared/external storage device where the application can place persistent files it owns.
Link copied to clipboard
open fun isDirectory(path: String): Boolean
Checks if specified path points to a directory that exists on the local filesystem.
Link copied to clipboard
open fun isFile(path: String): Boolean
Checks if specified path points to a file that exists on the local filesystem.
Link copied to clipboard
Checks if the specified path is a directory that can be read from and written into.