-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to the commander file types on Windows
- Loading branch information
1 parent
4ede84d
commit d96c85f
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2012-2021 Michael Pozhidaev <[email protected]> | ||
Copyright 2012-2022 Michael Pozhidaev <[email protected]> | ||
This file is part of LUWRAIN. | ||
|
@@ -30,7 +30,8 @@ | |
|
||
public final class CommanderUtilsVfs | ||
{ | ||
static private final String LOG_COMPONENT = "commander-vfs"; | ||
static private final String | ||
LOG_COMPONENT = "commander-vfs"; | ||
|
||
static public class Model implements CommanderArea.Model<FileObject> | ||
{ | ||
|
@@ -52,7 +53,7 @@ public FileSystemManager getFileSystemManager() | |
return EntryType.PARENT; | ||
if (entry instanceof org.apache.commons.vfs2.provider.local.LocalFile) | ||
{ | ||
final Path path = Paths.get(entry.getName().getPath()); | ||
final Path path = entry.getPath(); | ||
if (Files.isSymbolicLink(path)) | ||
return Files.isDirectory(path)?EntryType.SYMLINK_DIR:EntryType.SYMLINK; | ||
if (Files.isDirectory(path, LinkOption._LINKS)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters