[gdal-dev] Proper usage of gdal vsi list

Laurențiu Nicola lnicola at dend.ro
Tue Oct 28 11:17:56 PDT 2025


I'd be quite surprised if GDAL's vsicurl was able to understand a directory index.

Take https://cscie12.dce.harvard.edu/apache/autoindex/, for example, it's clear that's a directory with 7 files, but it also has a bunch of column sorting links you'd want to ignore.

To be fair, there aren't that many directory index formats, but I'm not sure that parsing them is a job for GDAL.

Laurentiu

On Tue, Oct 28, 2025, at 18:28, Scott via gdal-dev wrote:
> Using list with /vsicurl only returns results if I specify a file. No 
> results when specifying a directory. /vsis3 works as expected. Am I 
> doing this correctly?
>
> Works:
> gdal vsi list -lR 
> "/vsicurl/https://cdn.star.nesdis.noaa.gov/GOES18/ABI/MESO/M1/GEOCOLOR/2025292000425_GOES18-ABI-MESO-GEOCOLOR-39N-119W-1000x1000.jpg"
>
> No workee:
> gdal vsi list -lR 
> "/vsicurl/https://cdn.star.nesdis.noaa.gov/GOES18/ABI/MESO/M1/GEOCOLOR/"
>
> /vsicurl_streaming only returns directory name:
> gdal vsi list -lR 
> "/vsicurl_streaming/https://cdn.star.nesdis.noaa.gov/GOES18/ABI/MESO/M1/GEOCOLOR/"
>
> --depth has no effect.
>
> Debian 12/GDAL 3.12.0beta1
>
> Thanks!
> Scott
>
> -- 
> www.postholer.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list