is_valid_zarr_fsspec¶

is_valid_zarr_fsspec(file_path)[source]¶

Check if the input path is a valid Zarr fsspec JSON file.

Checks if the file_path is a valid Zarr fsspec JSON file generated by: tiatoolbox/utils/tiff_to_fsspec.py

Parameters:

file_path (str | Path | np.ndarray) – str Path to the file to check.

Returns:

True if the file is a valid Zarr fsspec JSON file

Return type:

bool