mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-27 02:45:36 +00:00
Fix case sensitive rename on macos
This commit is contained in:
@@ -129,7 +129,8 @@ public final class BrowserFileListModel {
|
||||
// This check will fail on case-insensitive file systems when changing the case of the file
|
||||
// So skip it in this case
|
||||
var skipExistCheck =
|
||||
fileSystemModel.getFileSystem().getShell().orElseThrow().getOsType() == OsType.WINDOWS
|
||||
(fileSystemModel.getFileSystem().getShell().orElseThrow().getOsType() == OsType.WINDOWS ||
|
||||
fileSystemModel.getFileSystem().getShell().orElseThrow().getOsType() == OsType.MACOS)
|
||||
&& old.getFileName().equalsIgnoreCase(newName);
|
||||
if (!skipExistCheck) {
|
||||
boolean exists;
|
||||
|
||||
Reference in New Issue
Block a user