Skip to content

Commit 8855b87

Browse files
committed
Fix mkdir implementation in VfsImplementationSaf.java
1 parent 929c783 commit 8855b87

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,13 @@ public static int mkdirSaf(ContentResolver content, String tree, String path)
267267
}
268268
path = path.length() == 1 ? DocumentsContract.getTreeDocumentId(treeUri) : DocumentsContract.getTreeDocumentId(treeUri) + path;
269269
final Uri directoryUri = DocumentsContract.buildDocumentUriUsingTree(treeUri, path);
270-
final Cursor cursor;
270+
Cursor cursor = null;
271271
try
272272
{
273273
cursor = content.query(directoryUri, QUERY_ARGS_MIME_TYPE, null, null, null);
274274
}
275275
catch (IllegalArgumentException e)
276-
{
277-
return -1;
278-
}
276+
{}
279277
if (cursor != null)
280278
{
281279
try

0 commit comments

Comments
 (0)