Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
Ignore case when finding existing directory when trying to create a n…
Browse files Browse the repository at this point in the history
…ew one
  • Loading branch information
arkon committed Nov 27, 2023
1 parent 33b8387 commit 7c257e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/src/main/java/com/hippo/unifile/AssetFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public UniFile createFile(String displayName) {

@Override
public UniFile createDirectory(String displayName) {
UniFile file = findFile(displayName);
UniFile file = findFile(displayName, true);
if (file != null && file.isDirectory()) {
return file;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public UniFile createDirectory(String displayName) {
return null;
}

UniFile child = findFile(displayName);
UniFile child = findFile(displayName, true);

if (child != null) {
if (child.isDirectory()) {
Expand Down

0 comments on commit 7c257e1

Please sign in to comment.