{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/134","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/134/comments","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/134/events","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/134","id":121815134,"number":134,"title":"Implement contentsOfDirectoryAtPath","user":{"login":"euantorano","id":748913,"avatar_url":"https://avatars.githubusercontent.com/u/748913?v=3","gravatar_id":"","url":"https://api.github.com/users/euantorano","html_url":"https://github.com/euantorano","followers_url":"https://api.github.com/users/euantorano/followers","following_url":"https://api.github.com/users/euantorano/following{/other_user}","gists_url":"https://api.github.com/users/euantorano/gists{/gist_id}","starred_url":"https://api.github.com/users/euantorano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euantorano/subscriptions","organizations_url":"https://api.github.com/users/euantorano/orgs","repos_url":"https://api.github.com/users/euantorano/repos","events_url":"https://api.github.com/users/euantorano/events{/privacy}","received_events_url":"https://api.github.com/users/euantorano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T23:49:40Z","updated_at":"2015-12-14T02:00:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/134","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/134","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/134.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/134.patch"},"body":"Implementing NSFileManager::contentsOfDirectoryAtPath() and NSFileManager::subpathsOfDirectoryAtPath().\r\n\r\nError messages aren't currently an exact match for the standard Foundation library, which throws:\r\n\r\n```\r\nFatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=260 \"The folder “notexist” doesn’t exist.\" UserInfo={NSFilePath=/Users/euan/Desktop/notexist, NSUserStringVariant=(\r\n    Folder\r\n), NSUnderlyingError=0x1007019f0 {Error Domain=NSOSStatusErrorDomain Code=-43 \"fnfErr: File not found\"}}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.1.101.15/src/swift/stdlib/public/core/ErrorType.swift, line 56\r\n(lldb)\r\n```\r\n\r\nWhereas this commit throws:\r\n\r\n```\r\nfatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=260 \"The file notexist couldn’t be opened because there is no such file.\" UserInfo={NSFilePath=/Users/euan/Desktop/notexist}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.1.101.15/src/swift/stdlib/public/core/ErrorType.swift, line 56\r\n```\r\n\r\nHowever, I lack the knowledge to know what I'm missing with the `NSError`.\r\n\r\nOtherwise, the test cases pass and this should hopefully work."},"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments/164322040","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/134#issuecomment-164322040","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/134","id":164322040,"user":{"login":"parkera","id":144462,"avatar_url":"https://avatars.githubusercontent.com/u/144462?v=3","gravatar_id":"","url":"https://api.github.com/users/parkera","html_url":"https://github.com/parkera","followers_url":"https://api.github.com/users/parkera/followers","following_url":"https://api.github.com/users/parkera/following{/other_user}","gists_url":"https://api.github.com/users/parkera/gists{/gist_id}","starred_url":"https://api.github.com/users/parkera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkera/subscriptions","organizations_url":"https://api.github.com/users/parkera/orgs","repos_url":"https://api.github.com/users/parkera/repos","events_url":"https://api.github.com/users/parkera/events{/privacy}","received_events_url":"https://api.github.com/users/parkera/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T02:00:38Z","updated_at":"2015-12-14T02:00:38Z","body":"Overall this looks pretty good, with the minor comment on `._`, which is worth testing.\r\n\r\nCan you rebase this on top of master and into a single commit?"}}