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) #2

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

Conversation

robfrawley
Copy link
Owner

fixes pauldreik#123 fixes pauldreik#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.

@robfrawley robfrawley added the enhancement New feature or request label May 10, 2024
@robfrawley robfrawley added this to the 1.7.0 milestone May 10, 2024
@robfrawley robfrawley self-assigned this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mtime switch Option to skip files with different attributes
2 participants