feat(smartfs.directory): feat(smartfs.directory): add directory copy/move with conflict handling and options

This commit is contained in:
2025-12-16 10:02:36 +00:00
parent 69ce0f4e64
commit b764942183
5 changed files with 352 additions and 7 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## 2025-12-16 - 1.3.0 - feat(smartfs.directory)
feat(smartfs.directory): add directory copy/move with conflict handling and options
- Implement Directory.copy(targetPath) and Directory.move(targetPath) with provider-backed file operations (createDirectory, listDirectory, copyFile, deleteDirectory).
- Add new directory options and fluent setters: applyFilter, overwrite, preserveTimestamps, onConflict (defaults: applyFilter=true, overwrite=false, preserveTimestamps=false, onConflict='merge').
- Copy supports recursive listing, optional filtering (applyFilter), overwrite behavior and timestamp preservation; onConflict supports 'merge'|'error'|'replace'. Move performs copy then deletes the source.
- Add comprehensive tests for copy/move: basic copy, recursive copy, filter-based copy, applyFilter(false) behavior, overwrite handling, onConflict error/replace cases, move semantics, and copying empty directories.
- Update npmextra.json to use scoped keys (@git.zone/cli, @ship.zone/szci) and add release registry/access configuration.
## 2025-12-02 - 1.2.0 - feat(smartfs.directory)
Add directory treeHash: deterministic content-based hashing of directory trees with streaming and algorithm option