apple/swift-nio

NIOFileSystem: provide a function that copies or replaces a file/dir

Open

#3.403 geöffnet am 12. Okt. 2025

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Swift (749 Forks)batch import
good first issuekind/enhancementsize/S

Repository-Metriken

Stars
 (8.453 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 5h) (18 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide