Creates a new File instance.
The underlying event bridge.
The URI that denotes the file.
The content URI of the file that can be shared with other applications.
true
is the file exists.
true
if the file is something other than a regular file, directory, or symbolic link.
The URL that can be loaded by the web view.
The file that represents the parent directory, or null
if there's no parent directory.
The size of the file (in bytes).
The size may differ from the actual size on the file system due to compression, support for sparse files, or other reasons. The size of files that are not regular files is implementation specific and therefore unspecified.
Appends binary data to the file.
The data to append.
Appends text to the file.
The text to append.
The expected file encoding.
Reads a file's attributes as a bulk operation.
Creates a directory denoted by this file.
true
if the directory was created, or false
otherwise.
Reads the binary file contents as base64-encoded string.
Reads text file contents as a string.
The expected file encoding.
Returns the uri of the file.
Writes the new binary content to a file.
If file doesn't exist then it is created. If file exists, it is overwritten.
The new binary file contents.
Writes the new text content to a file.
If file doesn't exist then it is created. If file exists, it is overwritten.
The new text file contents.
The expected file encoding.
Describes the file on the device.