Skip to content

Commit 8bcbce6

Browse files
committed
fix this
1 parent a641de5 commit 8bcbce6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

palera1nLoader/AppDelegate.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313
var window: UIWindow?
1414

1515
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
16+
createTmpDir()
17+
1618
let viewController = ViewController()
1719
let navController = UINavigationController(rootViewController: viewController)
1820
window = UIWindow(frame: UIScreen.main.bounds)
@@ -48,5 +50,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4850
}
4951
return true
5052
}
53+
54+
private func createTmpDir() {
55+
let fileManager = FileManager.default
56+
let directoryPath = "/tmp/palera1n"
57+
58+
do {
59+
try fileManager.createDirectory(atPath: directoryPath, withIntermediateDirectories: true, attributes: nil)
60+
print("Directory created successfully at \(directoryPath)")
61+
} catch {
62+
print("Failed to create directory: \(error.localizedDescription)")
63+
}
64+
}
65+
5166
}
5267

0 commit comments

Comments
 (0)