Changeset 4118
- Timestamp:
- 06/17/08 11:02:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/loci/formats/in/MicromanagerReader.java
r4048 r4118 65 65 /* @see loci.formats.IFormatReader#isThisType(String, boolean) */ 66 66 public boolean isThisType(String name, boolean open) { 67 if (name.endsWith(METADATA)) return true; 67 if (name.equals(METADATA) || name.endsWith(File.separator + METADATA)) { 68 return true; 69 } 68 70 if (!open) return false; // not allowed to touch the file system 69 71 Location parent = new Location(name).getAbsoluteFile().getParentFile(); 70 return new Location(parent, METADATA).exists(); 72 Location metaFile = new Location(parent, METADATA); 73 return metaFile.exists() && metaFile.length() > 0; 71 74 } 72 75
Note: See TracChangeset
for help on using the changeset viewer.