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

Added file distinction based on metadata (mtime, mode, owner) #155

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbeisert
Copy link

@nbeisert nbeisert commented Apr 2, 2024

fixes #123 fixes #131

description of changes: added functionality to distinguish files based on modification time, file mode, ownership (uid/gid).

considerations:

  • no command line switch has been added yet (functionality time/mode/owner always activated for the time being); will add command line options depending on desired implementation.
  • internal comparison will always distinguish additional attributes (next to file size and buffers); if no distinction of files due to time/mode/owner is desired, the corresponding attributes are set to 0 upon initialisation such that all files appear identical with regard to these data (reasoning: it would take a lot of administration to carry around the values of command line options throughout the processing unless they are saved in global variables; overhead should be minimal because comparison is invoked on files of identical size only).
  • some comparison methods were moved from Rdutil to Fileinfo; this simplifies direct access to (additional) attributes; it also appears natural to have these methods there.
  • will collaborate well with rsync when mtime distinction is activated.

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

Successfully merging this pull request may close these issues.

mtime switch Option to skip files with different attributes
1 participant