Commit be8fdc1
Allow to copy files and symlinks while overwriting the destination (#3508)
Adds capability to NIOFS to copy regular files and symlink, allowing to
overwrite the destination.
### Motivation:
Per #3403 and
#3470 we want to add
`replaceExisting: bool` to `FileSystem.copyItem`.
### Modifications:
1. Adds `replaceExisting: bool` parameter to
`FileSystemProtocol.copyItem`.
2. Adds `replaceExisting: bool` parameter to `FileSystem.copyItem` and
implementation for regular files and symbolic links.
3. Adds tests.
---------
Co-authored-by: George Barnett <gbarnett@apple.com>1 parent b0e0247 commit be8fdc1
File tree
4 files changed
+941
-48
lines changed- Sources/NIOFS
- Tests/NIOFSIntegrationTests
4 files changed
+941
-48
lines changed
0 commit comments