apple/swift-nio
Vedi su GitHubNIOFileSystem: provide a function that copies or replaces a file/dir
Open
#3403 aperta il 12 ott 2025
good first issuekind/enhancementsize/S
Metriche repository
- Star
- (8453 star)
- Metriche merge PR
- (Merge medio 8g 5h) (18 PR mergiate in 30 g)
Descrizione
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.