GP-4563: Support for searching for libraries inside a GFileSystem

This commit is contained in:
Ryan Kurtz 2024-05-16 06:43:27 -04:00
parent 9911db9828
commit 9f883022a4
7 changed files with 140 additions and 62 deletions

View file

@ -278,8 +278,10 @@ public class PathnameTablePanel extends JPanel {
pathName = "";
}
else {
File file = new File(pathName);
fileExists = file.exists();
int colonSlashSlash = pathName.indexOf("://");
if (colonSlashSlash <= 0) { // Assume FSRL/URLs always exist
fileExists = new File(pathName).exists();
}
}
label.setText(pathName.toString());