{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1","id":76369479,"html_url":"https://github.com/jonschlinkert/fs-exists-sync/pull/1","diff_url":"https://github.com/jonschlinkert/fs-exists-sync/pull/1.diff","patch_url":"https://github.com/jonschlinkert/fs-exists-sync/pull/1.patch","issue_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/1","number":1,"state":"closed","locked":false,"title":"Handle case sensitive file systems","user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"body":"This is the code that @jonschlinkert and I worked through to provide a fallback for platforms like `linux` that are case sensitive.\r\n\r\n- First try `fs.accessSync` or `fs.statSync`.\r\n  * If exact match, these methods will succeed.\r\n  * If case insensitive file system and file exists, these methods will succeed.\r\n  * If case sensitive file system and file exists but different case, these methods will fail.\r\n  * Returns given `filepath` on success (change from previous version which returned true).\r\n- On case sensitive file systems (`linux`) fall back to checking entire directory for file.\r\n  * Try to read `filepath` as a directory\r\n  * Try to read `dirname(filepath)` as a directory\r\n  * If `filepath` is a directory and read successful, return `filepath`\r\n  * Iterate over files in directory and compare resolved filepaths to given filepath.\r\n    + strict compare (same case)\r\n    + lower cased filepath with directory filepath\r\n    + given filepath with lowercased directory filepath\r\n    + lower cased filepath with lowercased directory filepath\r\n  * If any comparison matches, return matched filepath that was read in from the directory. This give consuming libraries a way to use the actual filepath with `fs` methods without having to redo all this searching and checks again.","created_at":"2016-07-06T02:10:01Z","updated_at":"2016-07-10T23:59:15Z","closed_at":"2016-07-10T23:59:15Z","merged_at":"2016-07-10T23:59:15Z","merge_commit_sha":"bd15c2b419aba85c91775c4aeb642658fe1790a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/1/comments","statuses_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/statuses/2d7973d808523726651cbb8cd7ff58a414eb72c7","head":{"label":"doowb:master","ref":"master","sha":"2d7973d808523726651cbb8cd7ff58a414eb72c7","user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"repo":{"id":62674750,"name":"fs-exists-sync","full_name":"doowb/fs-exists-sync","owner":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doowb/fs-exists-sync","description":"Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.","fork":true,"url":"https://api.github.com/repos/doowb/fs-exists-sync","forks_url":"https://api.github.com/repos/doowb/fs-exists-sync/forks","keys_url":"https://api.github.com/repos/doowb/fs-exists-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doowb/fs-exists-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doowb/fs-exists-sync/teams","hooks_url":"https://api.github.com/repos/doowb/fs-exists-sync/hooks","issue_events_url":"https://api.github.com/repos/doowb/fs-exists-sync/issues/events{/number}","events_url":"https://api.github.com/repos/doowb/fs-exists-sync/events","assignees_url":"https://api.github.com/repos/doowb/fs-exists-sync/assignees{/user}","branches_url":"https://api.github.com/repos/doowb/fs-exists-sync/branches{/branch}","tags_url":"https://api.github.com/repos/doowb/fs-exists-sync/tags","blobs_url":"https://api.github.com/repos/doowb/fs-exists-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doowb/fs-exists-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doowb/fs-exists-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/doowb/fs-exists-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doowb/fs-exists-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/doowb/fs-exists-sync/languages","stargazers_url":"https://api.github.com/repos/doowb/fs-exists-sync/stargazers","contributors_url":"https://api.github.com/repos/doowb/fs-exists-sync/contributors","subscribers_url":"https://api.github.com/repos/doowb/fs-exists-sync/subscribers","subscription_url":"https://api.github.com/repos/doowb/fs-exists-sync/subscription","commits_url":"https://api.github.com/repos/doowb/fs-exists-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/doowb/fs-exists-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/doowb/fs-exists-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/doowb/fs-exists-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/doowb/fs-exists-sync/contents/{+path}","compare_url":"https://api.github.com/repos/doowb/fs-exists-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doowb/fs-exists-sync/merges","archive_url":"https://api.github.com/repos/doowb/fs-exists-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doowb/fs-exists-sync/downloads","issues_url":"https://api.github.com/repos/doowb/fs-exists-sync/issues{/number}","pulls_url":"https://api.github.com/repos/doowb/fs-exists-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/doowb/fs-exists-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/doowb/fs-exists-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doowb/fs-exists-sync/labels{/name}","releases_url":"https://api.github.com/repos/doowb/fs-exists-sync/releases{/id}","deployments_url":"https://api.github.com/repos/doowb/fs-exists-sync/deployments","created_at":"2016-07-05T22:51:57Z","updated_at":"2016-07-05T22:51:57Z","pushed_at":"2016-07-06T01:52:39Z","git_url":"git://github.com/doowb/fs-exists-sync.git","ssh_url":"git@github.com:doowb/fs-exists-sync.git","clone_url":"https://github.com/doowb/fs-exists-sync.git","svn_url":"https://github.com/doowb/fs-exists-sync","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jonschlinkert:master","ref":"master","sha":"3b44654977775bac2d1151520c9b6257249a6374","user":{"login":"jonschlinkert","id":383994,"avatar_url":"https://avatars.githubusercontent.com/u/383994?v=3","gravatar_id":"","url":"https://api.github.com/users/jonschlinkert","html_url":"https://github.com/jonschlinkert","followers_url":"https://api.github.com/users/jonschlinkert/followers","following_url":"https://api.github.com/users/jonschlinkert/following{/other_user}","gists_url":"https://api.github.com/users/jonschlinkert/gists{/gist_id}","starred_url":"https://api.github.com/users/jonschlinkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonschlinkert/subscriptions","organizations_url":"https://api.github.com/users/jonschlinkert/orgs","repos_url":"https://api.github.com/users/jonschlinkert/repos","events_url":"https://api.github.com/users/jonschlinkert/events{/privacy}","received_events_url":"https://api.github.com/users/jonschlinkert/received_events","type":"User","site_admin":false},"repo":{"id":62673187,"name":"fs-exists-sync","full_name":"jonschlinkert/fs-exists-sync","owner":{"login":"jonschlinkert","id":383994,"avatar_url":"https://avatars.githubusercontent.com/u/383994?v=3","gravatar_id":"","url":"https://api.github.com/users/jonschlinkert","html_url":"https://github.com/jonschlinkert","followers_url":"https://api.github.com/users/jonschlinkert/followers","following_url":"https://api.github.com/users/jonschlinkert/following{/other_user}","gists_url":"https://api.github.com/users/jonschlinkert/gists{/gist_id}","starred_url":"https://api.github.com/users/jonschlinkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonschlinkert/subscriptions","organizations_url":"https://api.github.com/users/jonschlinkert/orgs","repos_url":"https://api.github.com/users/jonschlinkert/repos","events_url":"https://api.github.com/users/jonschlinkert/events{/privacy}","received_events_url":"https://api.github.com/users/jonschlinkert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonschlinkert/fs-exists-sync","description":"Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.","fork":false,"url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync","forks_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/forks","keys_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/teams","hooks_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/hooks","issue_events_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/events{/number}","events_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/events","assignees_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/assignees{/user}","branches_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/branches{/branch}","tags_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/tags","blobs_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/languages","stargazers_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/stargazers","contributors_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/contributors","subscribers_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/subscribers","subscription_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/subscription","commits_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/contents/{+path}","compare_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/merges","archive_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/downloads","issues_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues{/number}","pulls_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/labels{/name}","releases_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/releases{/id}","deployments_url":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/deployments","created_at":"2016-07-05T22:14:49Z","updated_at":"2016-07-06T15:37:15Z","pushed_at":"2016-07-10T23:59:16Z","git_url":"git://github.com/jonschlinkert/fs-exists-sync.git","ssh_url":"git@github.com:jonschlinkert/fs-exists-sync.git","clone_url":"https://github.com/jonschlinkert/fs-exists-sync.git","svn_url":"https://github.com/jonschlinkert/fs-exists-sync","homepage":null,"size":5,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1"},"html":{"href":"https://github.com/jonschlinkert/fs-exists-sync/pull/1"},"issue":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/1"},"comments":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jonschlinkert/fs-exists-sync/statuses/2d7973d808523726651cbb8cd7ff58a414eb72c7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jonschlinkert","id":383994,"avatar_url":"https://avatars.githubusercontent.com/u/383994?v=3","gravatar_id":"","url":"https://api.github.com/users/jonschlinkert","html_url":"https://github.com/jonschlinkert","followers_url":"https://api.github.com/users/jonschlinkert/followers","following_url":"https://api.github.com/users/jonschlinkert/following{/other_user}","gists_url":"https://api.github.com/users/jonschlinkert/gists{/gist_id}","starred_url":"https://api.github.com/users/jonschlinkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonschlinkert/subscriptions","organizations_url":"https://api.github.com/users/jonschlinkert/orgs","repos_url":"https://api.github.com/users/jonschlinkert/repos","events_url":"https://api.github.com/users/jonschlinkert/events{/privacy}","received_events_url":"https://api.github.com/users/jonschlinkert/received_events","type":"User","site_admin":false},"comments":13,"review_comments":10,"commits":3,"additions":107,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"jonschlinkert"}}