From 09a372bc45fde16fd42257ab6f78b8deeecf720b Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期三, 16 四月 2025 16:38:05 +0800
Subject: [PATCH] fix bug

---
 Pods/SwifterSwift/Sources/SwifterSwift/Foundation/FileManagerExtensions.swift |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/FileManagerExtensions.swift b/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/FileManagerExtensions.swift
index acbf377..3f7a16a 100644
--- a/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/FileManagerExtensions.swift
+++ b/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/FileManagerExtensions.swift
@@ -60,19 +60,10 @@
     /// - Throws: An error if a temporary directory cannot be found or created.
     /// - Returns: A URL to a new directory for saving temporary files.
     func createTemporaryDirectory() throws -> URL {
-        #if !os(Linux)
-        return try url(for: .itemReplacementDirectory,
-                       in: .userDomainMask,
-                       appropriateFor: temporaryDirectory,
-                       create: true)
-        #else
-        let envs = ProcessInfo.processInfo.environment
-        let env = envs["TMPDIR"] ?? envs["TEMP"] ?? envs["TMP"] ?? "/tmp"
-        let dir = "/\(env)/file-temp.XXXXXX"
-        var template = [UInt8](dir.utf8).map { Int8($0) } + [Int8(0)]
-        guard mkdtemp(&template) != nil else { throw CocoaError.error(.featureUnsupported) }
-        return URL(fileURLWithPath: String(cString: template))
-        #endif
+        try url(for: .itemReplacementDirectory,
+                in: .userDomainMask,
+                appropriateFor: temporaryDirectory,
+                create: true)
     }
 }
 

--
Gitblit v1.7.1