music: fix working directory in m3u export

This commit is contained in:
Alexander Capehart 2024-01-01 16:07:50 -07:00
parent 244373e2af
commit bf9667f545
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -102,9 +102,9 @@ constructor(
val filePath = documentPathFactory.unpackDocumentUri(uri) ?: return false
val workingDirectory =
if (config.absolute) {
filePath.directory
} else {
Path(filePath.volume, Components.parseUnix("/"))
} else {
filePath.directory
}
return try {
val outputStream = context.contentResolverSafe.openOutputStream(uri)