diff --git a/common/dir/rw_dir.go b/common/dir/rw_dir.go index 3728819ed..eef68aaf7 100644 --- a/common/dir/rw_dir.go +++ b/common/dir/rw_dir.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "os" - "path" "path/filepath" "syscall" @@ -74,9 +73,8 @@ func Exist(path string) bool { } func Recreate(dir string) { - aggDir := path.Join(dir, "agg22") - if Exist(aggDir) { - _ = os.RemoveAll(aggDir) + if Exist(dir) { + _ = os.RemoveAll(dir) } - MustExist(aggDir) + MustExist(dir) }