Skip to content

Commit

Permalink
Changed file name case check to local filesystem case-sensitivity check.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevealexrs committed Nov 8, 2022
1 parent 9a1b5ac commit 46a7a2a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ public static void rename(
private final DataUtils dataUtils = DataUtils.getInstance();

private final boolean isLocalFilesystemCaseInsensitive =
Objects.requireNonNull(oldFile.getFile()).exists()
oldFile.isLocal()
&& Objects.requireNonNull(oldFile.getFile()).exists()
&& new File(oldFile.getFile().getParent(), oldFile.getSimpleName().toUpperCase())
.exists()
&& new File(oldFile.getFile().getParent(), oldFile.getSimpleName().toLowerCase())
Expand Down

0 comments on commit 46a7a2a

Please sign in to comment.