Changeset 6236


Ignore:
Timestamp:
05/05/10 16:07:44 (10 years ago)
Author:
curtis
Message:

Add a hack to skip file existence check for .fake files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/ImageReader.java

    r6155 r6236  
    141141    throws FormatException, IOException 
    142142  { 
     143   // HACK: skip file existence check for fake files 
     144   boolean fake = id != null && id.toLowerCase().endsWith(".fake"); 
     145 
    143146   // NB: Check that we can generate a valid handle for the ID; 
    144147   // e.g., for files, this will throw an exception if the file is missing. 
    145    Location.getHandle(id).close(); 
     148   if (!fake) Location.getHandle(id).close(); 
    146149 
    147150    if (!id.equals(currentId)) { 
Note: See TracChangeset for help on using the changeset viewer.