Skip to content

Feat test n option#1317

Open
Mohamed-Moumni wants to merge 2 commits intomvdan:masterfrom
Mohamed-Moumni:feat-test-N-Option
Open

Feat test n option#1317
Mohamed-Moumni wants to merge 2 commits intomvdan:masterfrom
Mohamed-Moumni:feat-test-N-Option

Conversation

@Mohamed-Moumni
Copy link
Copy Markdown

Summary

  • Implement the -N file test operator (TsModif), which was previously unsupported and returned an error
  • Add interp/actime package with platform-specific GetAtime() functions (darwin, linux, windows) to retrieve file access time, as access time retrieval differs across platforms
  • Tested GetAtime() across all supported platforms, including Windows

Implemented #1316

Add platform-specific access time retrieval via the new actime package
(darwin, linux, windows) and use it to check if a file was modified
since it was last read (mtime > atime).
Add test cases for the -N operator covering modified-after-read,
non-existent file, and read-after-modification scenarios.
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.

1 participant