File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ def rmdir(self, path=None):
490
490
if path :
491
491
for base in [meta_root , data_root ]:
492
492
with self .lock :
493
- self .cursor .execute (' DELETE FROM zarr WHERE k LIKE (? || "/%")' , (base + path ,))
493
+ self .cursor .execute (" DELETE FROM zarr WHERE k LIKE (? || '/%')" , (base + path ,))
494
494
# remove any associated metadata files
495
495
sfx = _get_metadata_suffix (self )
496
496
meta_dir = (meta_root + path ).rstrip ("/" )
Original file line number Diff line number Diff line change @@ -2781,7 +2781,7 @@ def listdir(self, path=None):
2781
2781
f"""
2782
2782
SELECT DISTINCT SUBSTR(m, 0, INSTR(m, "/")) AS l FROM (
2783
2783
SELECT LTRIM(SUBSTR(k, LENGTH(?) + 1), "/") || "/" AS m
2784
- FROM zarr WHERE k LIKE (? || " { sep } %" )
2784
+ FROM zarr WHERE k LIKE (? || ' { sep } %' )
2785
2785
) ORDER BY l ASC
2786
2786
""" ,
2787
2787
(path , path ),
@@ -2806,7 +2806,7 @@ def rmdir(self, path=None):
2806
2806
path = normalize_storage_path (path )
2807
2807
if path :
2808
2808
with self .lock :
2809
- self .cursor .execute (' DELETE FROM zarr WHERE k LIKE (? || "/%")' , (path ,))
2809
+ self .cursor .execute (" DELETE FROM zarr WHERE k LIKE (? || '/%')" , (path ,))
2810
2810
else :
2811
2811
self .clear ()
2812
2812
You can’t perform that action at this time.
0 commit comments