Skip to content

Conversation

@umputun
Copy link
Member

@umputun umputun commented Feb 16, 2025

  • Add MoveFile function to handle file movement, including cross-device scenarios by using a copy-and-delete fallback.
  • Add TouchFile function to create or update file timestamps.
  • Replace math/rand with crypto/rand for secure random name generation in TempFileName.
  • Improve CopyFile function to preserve file modes.
  • Update tests to cover new functionality and error cases
  • Enhance README.md with details about new and updated functions.

…d TouchFile

- Replace `math/rand` with `crypto/rand` for secure random name generation in `TempFileName`.
- Improve `CopyFile` function to preserve file modes.
- Add `MoveFile` function to handle file movement, including cross-device scenarios by using a copy-and-delete fallback.
- Add `TouchFile` function to create or update file timestamps.
- Update tests to cover new functionality and error cases
- Enhance README.md with details about new and updated functions.
@umputun umputun merged commit 7c7e1ed into master Feb 16, 2025
4 checks passed
@umputun umputun deleted the improvements branch February 16, 2025 23:15
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.

2 participants