We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307e10d commit 3622ca8Copy full SHA for 3622ca8
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt
@@ -234,7 +234,9 @@ class MainActivity : SimpleActivity() {
234
235
var newPath = path
236
val file = File(path)
237
- if (file.exists() && !file.isDirectory) {
+ if (config.OTGPath.isNotEmpty() && config.OTGPath == path.trimEnd('/')) {
238
+ newPath = path
239
+ } else if (file.exists() && !file.isDirectory) {
240
newPath = file.parent
241
} else if (!file.exists() && !isPathOnOTG(newPath)) {
242
newPath = internalStoragePath
0 commit comments