Changeset 11893 in josm for trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
- Timestamp:
- 2017-04-13T01:08:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r10873 r11893 124 124 125 125 private static boolean canWrite(File f) { 126 if (f == null) return false; 127 if (f.isDirectory()) return false; 126 if (f == null || f.isDirectory()) return false; 128 127 if (f.exists() && f.canWrite()) return true; 129 if (!f.exists() && f.getParentFile() != null && f.getParentFile().canWrite()) 130 return true; 131 return false; 128 return !f.exists() && f.getParentFile() != null && f.getParentFile().canWrite(); 132 129 } 133 130
Note:
See TracChangeset
for help on using the changeset viewer.
