mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
put in delete folder children query
This commit is contained in:
parent
0701feeb17
commit
06f23aa675
|
@ -292,7 +292,10 @@ func (store *ArangodbStore) DeleteEntry(ctx context.Context, fullpath util.FullP
|
||||||
|
|
||||||
func (store *ArangodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error {
|
func (store *ArangodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error {
|
||||||
var query string
|
var query string
|
||||||
query = query + fmt.Sprintf(`filter starts_with(d.directory, "%s") remove d._key in files`,
|
query = query + fmt.Sprintf(`
|
||||||
|
for d in files
|
||||||
|
filter starts_with(d.directory, "%s/") || d.directory == "%s"
|
||||||
|
remove d._key in files`,
|
||||||
strings.Join(strings.Split(string(fullpath), "/"), ","),
|
strings.Join(strings.Split(string(fullpath), "/"), ","),
|
||||||
string(fullpath),
|
string(fullpath),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue