apple/swift-nio
NIOFileSystem: provide a function that copies or replaces a file/dir
開放
#3,403 建立於 2025年10月12日
good first issuekind/enhancementsize/S
倉庫指標
- 星標
- (8,453 顆星)
- PR 合併指標
- (平均合併 9天 10小時) (30 天內合併 15 個 PR)
描述
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.