File cache_file = getCacheFile();
if ( cache_file.exists() && cache_file.length() > 0 ){
return( new DiskManagerFileInfoFile( cache_file ));
}
if ( getBoolean( KEY_NO_XCODE )){
DiskManagerFileInfo res = getSourceFile();
if ( res instanceof DiskManagerFileInfoFile ){
return( res );
}else{
try{
return( new DiskManagerFileInfoDelegate( res ));
}catch( Throwable e ){
Debug.out( e );
return( res );
}
}
}
// Debug.out( "Target file for " + cache_file + " doesn't exist" );
return( new DiskManagerFileInfoFile( cache_file ));
}