Skip to content

Commit 591789d

Browse files
authored
Merge pull request #2057 from jmittert/split
Split FileManager into Platform Dependent Files
2 parents 7c007bb + 1e0272a commit 591789d

File tree

5 files changed

+1891
-1682
lines changed

5 files changed

+1891
-1682
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ add_swift_library(Foundation
141141
Foundation/ExtraStringAPIs.swift
142142
Foundation/FileHandle.swift
143143
Foundation/FileManager.swift
144+
Foundation/FileManager+POSIX.swift
145+
Foundation/FileManager+Win32.swift
144146
Foundation/FileManager_XDG.swift
145147
Foundation/Formatter.swift
146148
Foundation/FoundationErrors.swift

Foundation.xcodeproj/project.pbxproj

+8
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@
355355
7D0DE86E211883F500540061 /* TestDateComponents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D0DE86C211883F500540061 /* TestDateComponents.swift */; };
356356
7D0DE86F211883F500540061 /* Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D0DE86D211883F500540061 /* Utilities.swift */; };
357357
90E645DF1E4C89A400D0D47C /* TestNSCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90E645DE1E4C89A400D0D47C /* TestNSCache.swift */; };
358+
91B668A32252B3C5001487A1 /* FileManager+POSIX.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91B668A22252B3C5001487A1 /* FileManager+POSIX.swift */; };
359+
91B668A52252B3E7001487A1 /* FileManager+Win32.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91B668A42252B3E7001487A1 /* FileManager+Win32.swift */; };
358360
9F0DD3521ECD73D000F68030 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F0041781ECD5962004138BD /* main.swift */; };
359361
9F0DD3571ECD783500F68030 /* SwiftFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B5D885D1BBC938800234F36 /* SwiftFoundation.framework */; };
360362
A058C2021E529CF100B07AA1 /* TestMassFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A058C2011E529CF100B07AA1 /* TestMassFormatter.swift */; };
@@ -885,6 +887,8 @@
885887
84BA558D1C16F90900F48C54 /* TestTimeZone.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestTimeZone.swift; sourceTree = "<group>"; };
886888
88D28DE61C13AE9000494606 /* TestNSGeometry.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestNSGeometry.swift; sourceTree = "<group>"; };
887889
90E645DE1E4C89A400D0D47C /* TestNSCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestNSCache.swift; sourceTree = "<group>"; };
890+
91B668A22252B3C5001487A1 /* FileManager+POSIX.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FileManager+POSIX.swift"; sourceTree = "<group>"; };
891+
91B668A42252B3E7001487A1 /* FileManager+Win32.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FileManager+Win32.swift"; sourceTree = "<group>"; };
888892
9F0041781ECD5962004138BD /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
889893
9F0DD33F1ECD734200F68030 /* xdgTestHelper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = xdgTestHelper.app; sourceTree = BUILT_PRODUCTS_DIR; };
890894
9F0DD34F1ECD737B00F68030 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -1922,6 +1926,8 @@
19221926
children = (
19231927
EADE0B5D1BD15DFF00C49C64 /* FileHandle.swift */,
19241928
EADE0B5E1BD15DFF00C49C64 /* FileManager.swift */,
1929+
91B668A42252B3E7001487A1 /* FileManager+Win32.swift */,
1930+
91B668A22252B3C5001487A1 /* FileManager+POSIX.swift */,
19251931
1513A8422044893F00539722 /* FileManager_XDG.swift */,
19261932
EADE0B7A1BD15DFF00C49C64 /* Process.swift */,
19271933
5BDC3F2F1BCC5DCB00ED97BB /* Bundle.swift */,
@@ -2392,6 +2398,7 @@
23922398
153CC8352215E00200BFE8F3 /* ScannerAPI.swift in Sources */,
23932399
D3E8D6D11C367AB600295652 /* NSSpecialValue.swift in Sources */,
23942400
EAB57B721BD1C7A5004AC5C5 /* PortMessage.swift in Sources */,
2401+
91B668A32252B3C5001487A1 /* FileManager+POSIX.swift in Sources */,
23952402
5BD31D201D5CE8C400563814 /* Bridging.swift in Sources */,
23962403
3EDCE50C1EF04D8100C2EC04 /* Codable.swift in Sources */,
23972404
EADE0BBB1BD15E0000C49C64 /* URLAuthenticationChallenge.swift in Sources */,
@@ -2472,6 +2479,7 @@
24722479
5BF7AEB21BCD51F9008F214A /* NSNumber.swift in Sources */,
24732480
61D2F9AF1FECFB3E0033306A /* NativeProtocol.swift in Sources */,
24742481
1513A8432044893F00539722 /* FileManager_XDG.swift in Sources */,
2482+
91B668A52252B3E7001487A1 /* FileManager+Win32.swift in Sources */,
24752483
B9974B991EDF4A22007F15B8 /* HTTPURLProtocol.swift in Sources */,
24762484
5BCD03821D3EE35C00E3FF9B /* TimeZone.swift in Sources */,
24772485
EADE0BBC1BD15E0000C49C64 /* URLCache.swift in Sources */,

0 commit comments

Comments
 (0)