Improve Path/Uri conversion

This commit is contained in:
FooIbar committed 2024-07-09 21:51:41 +08:00
1 parent ae66318843
commit d00d700a4b
6 files changed
+37 -15

No files matched your search

@@ -190,7 +190,7 @@ class AndroidFileSystem(context: Context) : FileSystem() {
}
}
private fun Path.isPhysicalFile() = toString().first() == '/'
private fun Path.isPhysicalFile() = toString().startsWith('/')
private fun Uri.isCifsDocument() = authority == "com.wa2c.android.cifsdocumentsprovider.documents"