mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 04:47:39 +00:00
Truncate existing file when openOutputStream
This commit is contained in:
parent
67f8dc494e
commit
bacb5fa462
@ -101,7 +101,7 @@ object MediaStoreUtils {
|
||||
|
||||
fun Uri.inputStream() = cr.openInputStream(this) ?: throw FileNotFoundException()
|
||||
|
||||
fun Uri.outputStream() = cr.openOutputStream(this) ?: throw FileNotFoundException()
|
||||
fun Uri.outputStream() = cr.openOutputStream(this, "rwt") ?: throw FileNotFoundException()
|
||||
|
||||
val Uri.displayName: String get() {
|
||||
if (scheme == "file") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user