On Tue, 11 Oct 2022 07:06:35 GMT, Abhishek Kumar <d...@openjdk.org> wrote:

>> src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
>>  line 997:
>> 
>>> 995:             File crntDir = getFileChooser().getCurrentDirectory();
>>> 996:             if (crntDir != null && crntDir.getParentFile() == null &&
>>> 997:                 files.contains(new File("/.."))) {
>> 
>> Is it not possible to use "FileSystemView.isFileSystemRoot(File)" for this?
>
> I have not checked this.
> Do you mean to check `FileSystemView.isFileSystemRoot(crntDir )` ?

I guess that's what you commented "if current directory is root"

-------------

PR: https://git.openjdk.org/jdk/pull/10390

Reply via email to