Skip to content

Commit 984e074

Browse files
authored
trim trailing / from ancient path (#1400)
1 parent 3480262 commit 984e074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cli/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func checkDeletePermissions(path string) (bool, error) {
473473
func (c *PruneBlockCommand) pruneBlock(stack *node.Node, fdHandles int) error {
474474
name := "chaindata"
475475

476-
oldAncientPath := c.datadirAncient
476+
oldAncientPath := strings.TrimSuffix(c.datadirAncient, "/")
477477

478478
switch {
479479
case oldAncientPath == "":

0 commit comments

Comments
 (0)