mirror of
https://github.com/kopia/kopia.git
synced 2026-05-19 04:04:56 -04:00
repo: upgraded to latest version, removed format block settings from repository create, instead --encryption=NONE disables encryption of both blocks and format
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
func runCacheClearCommand(ctx context.Context, rep *repo.Repository) error {
|
||||
if d := rep.CacheDirectory; d != "" {
|
||||
printStderr("Clearing cache directory: %v.\n", d)
|
||||
err := os.RemoveAll(d)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -23,7 +24,7 @@ func runCacheClearCommand(ctx context.Context, rep *repo.Repository) error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Noticef("cache cleared")
|
||||
printStderr("Cache cleared.\n")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user