Improve Path/Uri conversion
This commit is contained in:
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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user