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.