Skip to content

Commit

Permalink
Added fenceposts to only add leading '/' to nczarr tests when working…
Browse files Browse the repository at this point in the history
… in a filesystem which requires it. This may fail on cygwin, but I don't have an easy way to test that, so we shall see what the Github Actions reveal.
  • Loading branch information
WardF committed Jan 27, 2025
1 parent 779bbbf commit 6875ae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnczarr/zmap_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,10 @@ zfilelistall(NCZMAP* map, const char* prefixkey, NClist* matches)

/* prime the key tracker */
/* Ensure leading '/' */
#ifndef _MSC_VER
if(fullpath[0] != '/')
ncbytescat(path,"/");
#endif
ncbytescat(path,fullpath);
ncbytescat(path,prefixkey);
/* Ensure no trailing '/' */
Expand Down

0 comments on commit 6875ae3

Please sign in to comment.