mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-13 16:35:28 +00:00
Truncate existing file when openOutputStream
This commit is contained in:
@@ -101,7 +101,7 @@ object MediaStoreUtils {
|
|||||||
|
|
||||||
fun Uri.inputStream() = cr.openInputStream(this) ?: throw FileNotFoundException()
|
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() {
|
val Uri.displayName: String get() {
|
||||||
if (scheme == "file") {
|
if (scheme == "file") {
|
||||||
|
Reference in New Issue
Block a user