File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments