Skip to content

Commit

Permalink
from docs dir to more permissive temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ZonD80 committed May 26, 2020
1 parent 7870c6a commit 9677b1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions duppy2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.2;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -406,7 +406,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.2;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions duppy2/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ViewController: UIViewController , UITableViewDataSource , UITableViewDele
return output!
}

let localPathURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0];
let localPathURL = FileManager.default.temporaryDirectory;
var isAppCloningNow: Bool = false;
let selfAppPath = Bundle.main.bundlePath;

Expand Down Expand Up @@ -106,6 +106,7 @@ class ViewController: UIViewController , UITableViewDataSource , UITableViewDele
self.isAppCloningNow = false;
self.setStatusText(text: "ERROR: unable to create temp dir \(localPath)/work_dir/Payload")
return;

}

self.log("Copying app data")
Expand All @@ -116,7 +117,7 @@ class ViewController: UIViewController , UITableViewDataSource , UITableViewDele
}
catch {
self.log("unable to copy dir \(error)");
self.setStatusText(text: "ERROR: unable to remove temp dir")
self.setStatusText(text: "ERROR: unable to copy original app data")
self.isAppCloningNow = false;
return;
}
Expand Down Expand Up @@ -389,7 +390,6 @@ class ViewController: UIViewController , UITableViewDataSource , UITableViewDele

super.viewDidLoad()


self.log("app path is \(self.selfAppPath)")
self.log("documents path URL is \(self.localPathURL)");

Expand Down

0 comments on commit 9677b1a

Please sign in to comment.