From 20fa7bfb19b65c4a1fbaf568545777124a06a074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Mon, 3 Aug 2026 18:14:00 -0400 Subject: [PATCH] Fix a bug in the SAF implementation of the VFS mkdir function --- .../saf/src/com/libretro/common/vfs/VfsImplementationSaf.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java b/libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java index 5b4cc1219eff..15a6e26fba04 100644 --- a/libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java +++ b/libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java @@ -280,8 +280,7 @@ public static int mkdirSaf(ContentResolver content, String tree, String path) path = normalizePath(path); if (isDocument(treeUri)) return -1; - path = path.length() == 1 ? DocumentsContract.getTreeDocumentId(treeUri) : DocumentsContract.getTreeDocumentId(treeUri) + path; - final Uri directoryUri = DocumentsContract.buildDocumentUriUsingTree(treeUri, path); + final Uri directoryUri = DocumentsContract.buildDocumentUriUsingTree(treeUri, path.length() == 1 ? DocumentsContract.getTreeDocumentId(treeUri) : DocumentsContract.getTreeDocumentId(treeUri) + path); Cursor cursor = null; try {