mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
FileExplorer: Replace file when inserting
This commit is contained in:
@@ -222,7 +222,7 @@ private struct File: View {
|
|||||||
case .insert:
|
case .insert:
|
||||||
print("inserting \(selectedFile!.description) to \(item.path.description)")
|
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 = true
|
||||||
explorerHidden = false
|
explorerHidden = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user