AndroidFileSystem

class AndroidFileSystem(context: Context) : FileSystem

Functions

appendingSink
Link copied to clipboard
fun appendingSink(file: Path): Sink
open override fun appendingSink(file: Path, mustExist: Boolean): Sink
atomicMove
Link copied to clipboard
open override fun atomicMove(source: Path, target: Path)
Not yet implemented
canonicalize
Link copied to clipboard
open override fun canonicalize(path: Path): Path
copy
Link copied to clipboard
open fun copy(source: Path, target: Path)
createDirectories
Link copied to clipboard
fun createDirectories(dir: Path)
fun createDirectories(dir: Path, mustCreate: Boolean)
createDirectory
Link copied to clipboard
fun createDirectory(dir: Path)
open override fun createDirectory(dir: Path, mustCreate: Boolean)
Not yet implemented
createMediaStoreUri
Link copied to clipboard
fun createMediaStoreUri(filename: String, directory: String): Uri?
fun createMediaStoreUri(filename: String, collection: Uri = MediaStore.Files.getContentUri("external"), directory: String?): Uri?
createSymlink
Link copied to clipboard
open override fun createSymlink(source: Path, target: Path)
delete
Link copied to clipboard
fun delete(path: Path)
open override fun delete(path: Path, mustExist: Boolean)
deleteRecursively
Link copied to clipboard
fun deleteRecursively(fileOrDirectory: Path)
open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
exists
Link copied to clipboard
fun exists(path: Path): Boolean
list
Link copied to clipboard
open override fun list(dir: Path): List<Path>
listOrNull
Link copied to clipboard
open override fun listOrNull(dir: Path): List<Path>?
listRecursively
Link copied to clipboard
fun listRecursively(dir: Path): Sequence<Path>
open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
metadata
Link copied to clipboard
fun metadata(path: Path): FileMetadata
metadataOrNull
Link copied to clipboard
open override fun metadataOrNull(path: Path): FileMetadata?
openReadOnly
Link copied to clipboard
open override fun openReadOnly(file: Path): FileHandle
Not yet implemented
openReadWrite
Link copied to clipboard
fun openReadWrite(file: Path): FileHandle
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
Not yet implemented
read
Link copied to clipboard
inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
scanFile
Link copied to clipboard
suspend fun scanFile(file: File, mimeType: String): Uri?
scanUri
Link copied to clipboard
suspend fun scanUri(uri: Uri, mimeType: String): Uri?
sink
Link copied to clipboard
fun sink(file: Path): Sink
open override fun sink(file: Path, mustCreate: Boolean): Sink
source
Link copied to clipboard
open override fun source(file: Path): Source
write
Link copied to clipboard
inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T