We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 280199c commit 94dc57fCopy full SHA for 94dc57f
Sources/Foundation/FileManager+POSIX.swift
@@ -355,14 +355,7 @@ extension FileManager {
355
defer { ps.deallocate() }
356
ps.initialize(to: UnsafeMutablePointer(mutating: fsRep))
357
ps.advanced(by: 1).initialize(to: nil)
358
- return ps.withMemoryRebound(to: UnsafeMutablePointer<CChar>.self, capacity: 2) { rebound_ps in
359
-#if canImport(Android)
360
- let arg = rebound_ps
361
-#else
362
- let arg = ps
363
-#endif
364
- return fts_open(arg, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
365
- }
+ return fts_open(ps, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
366
}
367
if _stream == nil {
368
throw _NSErrorWithErrno(errno, reading: true, url: url)
0 commit comments