-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add file watcher and checksum functionality #4
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
Conversation
- Add FileWatcher to monitor files and directories for changes - Add WatchRecursive for recursive directory monitoring - Implement Checksum function for file hash calculation with multiple algorithms - Add enum package for EventType and HashAlg enumerations - Update CI workflow to use latest golangci-lint - Add comprehensive documentation and examples - Fix code to comply with linter requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- go.mod: Language not supported
fileutils.go
Outdated
| } | ||
|
|
||
| // Checksum calculates the checksum of a file using the specified hash algorithm. | ||
| // Supported algorithms are MD5, SHA1, and SHA256. |
Copilot
AI
Apr 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment for the Checksum function lists only MD5, SHA1, and SHA256 as supported algorithms, but the implementation supports additional algorithms. Please update the comment to accurately reflect all supported hash algorithms.
| // Supported algorithms are MD5, SHA1, and SHA256. | |
| // Supported algorithms are MD5, SHA1, SHA224, SHA256, SHA384, SHA512, SHA512_224, and SHA512_256. |
This caused golangci-lint config validation errors Add file watcher and checksum functionality (go-pkgz#4) * Add file watcher and checksum functionality - Add FileWatcher to monitor files and directories for changes - Add WatchRecursive for recursive directory monitoring - Implement Checksum function for file hash calculation with multiple algorithms - Add enum package for EventType and HashAlg enumerations - Update CI workflow to use latest golangci-lint - Add comprehensive documentation and examples - Fix code to comply with linter requirements * Fix test race condition in TestWatchRecursive * Allow coveralls step to fail without failing the build * Replace if-else-if chain with switch statement * Fix formatting issue * Update Checksum function comment to list all supported hash algorithms feature: MkDir added MkDir as a method on the fileutils feature
Summary