apple/swift-nio
Voir sur GitHubNIOFileSystem: provide a function that copies or replaces a file/dir
Open
#3 403 ouverte le 12 oct. 2025
good first issuekind/enhancementsize/S
Métriques du dépôt
- Stars
- (8 453 stars)
- Métriques de merge PR
- (Merge moyen 8j 5h) (18 PRs mergées en 30 j)
Description
Usually, when copying a file, I don't hugely mind if it already exists. If it does, I want to overwrite it.
NIO FS currently provides copyItem (fails if dest already exists) and replaceItem (fails if dest does not already exist). This makes for pretty awkward code if you want to do it correctly.