You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use a common subfunction to read directory contents in
contentsOfDirectory(atPath:) and subpathsOfDirectory(atPath:).
- Use readdir_r() instead of readdir().
- Call fileSystemRepresentation(withPath:) on the requested directory
to match behaviour on Darwin.
- Replace the test case of a bad directory using "" with "/..." which
now fails the precondition (to match Darwin).
Performs a shallow search of the specified directory and returns the paths of any contained items.
177
205
@@ -186,28 +214,11 @@ open class FileManager : NSObject {
186
214
- Returns: An array of String each of which identifies a file, directory, or symbolic link contained in `path`. The order of the files returned is undefined.
@@ -225,48 +236,16 @@ open class FileManager : NSObject {
225
236
- Returns: An array of NSString objects, each of which contains the path of an item in the directory specified by path. If path is a symbolic link, this method traverses the link. This method returns nil if it cannot retrieve the device of the linked-to file.
0 commit comments