Currently, the ZarrIosp opens all files that have the Raf type RandomAccessDirectory. The Raf is assigned this type for in the case MFiles.create(location).isDirectory() == true.
For a single zipped file, we would like Zarr to not be used. So we need the Raf to not be a RandomAccessDirectory. Then, as without the zarr code, the compressed file will get uncompressed and the uncompressed file will be assigned a normal RandomAccessFile Raf.
This PR fixes this issue by not classifying single zipped files as "directories".
Description of Changes
Fixes https://github.com/Unidata/netcdf-java/issues/1319.
Currently, the
ZarrIosp
opens all files that have the Raf typeRandomAccessDirectory
. The Raf is assigned this type for in the caseMFiles.create(location).isDirectory() == true
.For a single zipped file, we would like Zarr to not be used. So we need the Raf to not be a
RandomAccessDirectory
. Then, as without the zarr code, the compressed file will get uncompressed and the uncompressed file will be assigned a normalRandomAccessFile
Raf.This PR fixes this issue by not classifying single zipped files as "directories".