Skip to content

Commit

Permalink
Remove NIO change on CI that's no longer needed because of upstream pull
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Jan 27, 2025
1 parent 2f04c46 commit 9466bcf
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions swift-nio-filesystem.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
diff --git a/Sources/NIOFileSystem/FileSystem.swift b/Sources/NIOFileSystem/FileSystem.swift
index 3fc7d561..50e0482a 100644
--- a/Sources/NIOFileSystem/FileSystem.swift
+++ b/Sources/NIOFileSystem/FileSystem.swift
@@ -17,6 +17,7 @@
import NIOCore
import NIOPosix
import SystemPackage
+import class Foundation.FileManager

#if canImport(Darwin)
import Darwin
@@ -626,7 +627,8 @@ public struct FileSystem: Sendable, FileSystemProtocol {
}.get()
}
#elseif os(Android)
- return "/data/local/tmp"
+ //return "/data/local/tmp"
+ return FilePath(FileManager.default.temporaryDirectory.path)
#else
return "/tmp"
#endif
diff --git a/Sources/NIOFileSystem/Internal/SystemFileHandle.swift b/Sources/NIOFileSystem/Internal/SystemFileHandle.swift
index 3dc51872..49aeeeca 100644
--- a/Sources/NIOFileSystem/Internal/SystemFileHandle.swift
Expand Down

0 comments on commit 9466bcf

Please sign in to comment.