Restore COW on copy for linux

This commit is contained in:
2025-01-04 02:23:54 +03:00
parent e7c515c718
commit f73d612666
2 changed files with 19 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ func (c *Config) Validate() error {
return fmt.Errorf("target dir is required")
}
if !slices.Contains([]Mode{ModeHardlink, ModeSymlink, ModeMove, ModeSymlink}, c.Mode) {
if !slices.Contains([]Mode{ModeHardlink, ModeSymlink, ModeMove, ModeCopy}, c.Mode) {
return fmt.Errorf("invalid mode %s", c.Mode)
}