Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--copyfrom gets option to enforce copying NULL attributes to the destination #82

Open
porg opened this issue Nov 14, 2022 · 1 comment

Comments

@porg
Copy link

porg commented Nov 14, 2022

Status Quo

-f, --copyfrom SOURCE_FILE
Copy attributes from file SOURCE_FILE (only updates destination attributes that are not null in SOURCE_FILE).

Proposal

  • When running --copyfrom with --mirror-null then NULL values on the SRC are nulled on the DST side too.

Design Rationale

  • This is handy when using osxmetadata --copyfrom /local/file /remote/file as a means of metadata sync to backup destinations which are ok for backing up your data but may loose metadata sometimes, hence the need so sync from time to time.
  • In situations where a Finder tag or comment gets purposely changed from e.g. "Current Marketing Material" to "", it would be nice if I could push those intentional removal with an enforcing flag like --mirror-null.
@porg
Copy link
Author

porg commented Nov 15, 2022

Maybe the --all option was made in that spirit?

Also add for --mirror and --copyfrom

  • Which possibly is the same intention as this ticket. If so feel free to close/merge as you see fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant