File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ extension NSString {
197
197
#endif
198
198
}
199
199
200
- public static func pathWithComponents ( _ components: [ String ] ) -> String {
200
+ public static func path ( withComponents components: [ String ] ) -> String {
201
201
var result = " "
202
202
for comp in components. prefix ( components. count - 1 ) {
203
203
result = result. _stringByAppendingPathComponent ( comp. _stringByFixingSlashes ( ) , doneAppending: false )
Original file line number Diff line number Diff line change @@ -880,7 +880,7 @@ extension NSURL {
880
880
/* The following methods work on the path portion of a URL in the same manner that the NSPathUtilities methods on NSString do.
881
881
*/
882
882
open class func fileURL( withPathComponents components: [ String ] ) -> URL ? {
883
- let path = NSString . pathWithComponents ( components)
883
+ let path = NSString . path ( withComponents : components)
884
884
if components. last == " / " {
885
885
return URL ( fileURLWithPath: path, isDirectory: true )
886
886
} else {
You can’t perform that action at this time.
0 commit comments