mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
FileExplorer: Replace file when inserting
This commit is contained in:
@@ -222,7 +222,7 @@ private struct File: View {
|
||||
case .insert:
|
||||
print("inserting \(selectedFile!.description) to \(item.path.description)")
|
||||
|
||||
try FileManager.default.copyItem(at: selectedFile!, to: item.path.appendingPathComponent(selectedFile!.pathComponents.last!))
|
||||
try FileManager.default.copyItem(at: selectedFile!, to: item.path.appendingPathComponent(selectedFile!.pathComponents.last!), shouldReplace: true)
|
||||
explorerHidden = true
|
||||
explorerHidden = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user