music: fix working directory in m3u export
This commit is contained in:
parent
244373e2af
commit
bf9667f545
1 changed files with 2 additions and 2 deletions
|
@ -102,9 +102,9 @@ constructor(
|
||||||
val filePath = documentPathFactory.unpackDocumentUri(uri) ?: return false
|
val filePath = documentPathFactory.unpackDocumentUri(uri) ?: return false
|
||||||
val workingDirectory =
|
val workingDirectory =
|
||||||
if (config.absolute) {
|
if (config.absolute) {
|
||||||
filePath.directory
|
|
||||||
} else {
|
|
||||||
Path(filePath.volume, Components.parseUnix("/"))
|
Path(filePath.volume, Components.parseUnix("/"))
|
||||||
|
} else {
|
||||||
|
filePath.directory
|
||||||
}
|
}
|
||||||
return try {
|
return try {
|
||||||
val outputStream = context.contentResolverSafe.openOutputStream(uri)
|
val outputStream = context.contentResolverSafe.openOutputStream(uri)
|
||||||
|
|
Loading…
Reference in a new issue