Skip to content

Commit

Permalink
fix: persistent path issue during delete
Browse files Browse the repository at this point in the history
  • Loading branch information
manu2311 committed Apr 4, 2022
1 parent 84ce338 commit 641b8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ extension Bundle {

@objc public func delete(version: String, versionName: String) -> Bool {
let destHot = documentsUrl.appendingPathComponent(basePathHot).appendingPathComponent(version)
let destPersist = documentsUrl.appendingPathComponent(basePathPersist).appendingPathComponent(version)
let destPersist = libraryUrl.appendingPathComponent(basePathPersist).appendingPathComponent(version)
do {
try FileManager.default.removeItem(atPath: destHot.path)
} catch {
Expand Down

0 comments on commit 641b8ef

Please sign in to comment.