{"action":"created","comment":{"url":"https://api.github.com/repos/dsheets/tower/pulls/comments/25975819","id":25975819,"diff_hunk":"@@ -72,7 +77,8 @@ let in_dir path f =\n \n let foldp_paths f p acc dir =\n   let dh = Unix.opendir dir in\n-  let files = in_dir dir (fun () -> all_files \"\" [] dh) in\n+  let full_files = in_dir dir (fun () -> all_files \"\" [] dh) in\n+  let files = List.filter (fun file_name -> not (ignorable_file file_name)) full_files in\n   let () = Unix.closedir dh in\n   List.fold_left (fun acc file ->\n     if p file dir then f acc file else acc","path":"cli/towerSysUtil.ml","position":21,"original_position":21,"commit_id":"bdff5926deffd29522071ff5cd583d44e955a672","original_commit_id":"bdff5926deffd29522071ff5cd583d44e955a672","user":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"body":"I think `ignorable_file` should be used by the caller of `foldp_paths` in the `p` (predicate) parameter which is used here to filter the paths while they are being folded.","created_at":"2015-03-06T20:35:28Z","updated_at":"2015-03-06T20:35:28Z","html_url":"https://github.com/dsheets/tower/pull/23#discussion_r25975819","pull_request_url":"https://api.github.com/repos/dsheets/tower/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/dsheets/tower/pulls/comments/25975819"},"html":{"href":"https://github.com/dsheets/tower/pull/23#discussion_r25975819"},"pull_request":{"href":"https://api.github.com/repos/dsheets/tower/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/dsheets/tower/pulls/23","id":30666844,"html_url":"https://github.com/dsheets/tower/pull/23","diff_url":"https://github.com/dsheets/tower/pull/23.diff","patch_url":"https://github.com/dsheets/tower/pull/23.patch","issue_url":"https://api.github.com/repos/dsheets/tower/issues/23","number":23,"state":"open","locked":false,"title":"Ignore files/directories starting with . or _","user":{"login":"sgrove","id":35296,"avatar_url":"https://avatars.githubusercontent.com/u/35296?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrove","html_url":"https://github.com/sgrove","followers_url":"https://api.github.com/users/sgrove/followers","following_url":"https://api.github.com/users/sgrove/following{/other_user}","gists_url":"https://api.github.com/users/sgrove/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrove/subscriptions","organizations_url":"https://api.github.com/users/sgrove/orgs","repos_url":"https://api.github.com/users/sgrove/repos","events_url":"https://api.github.com/users/sgrove/events{/privacy}","received_events_url":"https://api.github.com/users/sgrove/received_events","type":"User","site_admin":false},"body":"Closes #1 ","created_at":"2015-03-06T18:17:16Z","updated_at":"2015-03-06T20:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9836e4d0ba4b90f04986107203fedd0bf151013c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dsheets/tower/pulls/23/commits","review_comments_url":"https://api.github.com/repos/dsheets/tower/pulls/23/comments","review_comment_url":"https://api.github.com/repos/dsheets/tower/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dsheets/tower/issues/23/comments","statuses_url":"https://api.github.com/repos/dsheets/tower/statuses/bdff5926deffd29522071ff5cd583d44e955a672","head":{"label":"sgrove:ignore-dot-and-underscore-file-names","ref":"ignore-dot-and-underscore-file-names","sha":"bdff5926deffd29522071ff5cd583d44e955a672","user":{"login":"sgrove","id":35296,"avatar_url":"https://avatars.githubusercontent.com/u/35296?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrove","html_url":"https://github.com/sgrove","followers_url":"https://api.github.com/users/sgrove/followers","following_url":"https://api.github.com/users/sgrove/following{/other_user}","gists_url":"https://api.github.com/users/sgrove/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrove/subscriptions","organizations_url":"https://api.github.com/users/sgrove/orgs","repos_url":"https://api.github.com/users/sgrove/repos","events_url":"https://api.github.com/users/sgrove/events{/privacy}","received_events_url":"https://api.github.com/users/sgrove/received_events","type":"User","site_admin":false},"repo":{"id":31782224,"name":"tower","full_name":"sgrove/tower","owner":{"login":"sgrove","id":35296,"avatar_url":"https://avatars.githubusercontent.com/u/35296?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrove","html_url":"https://github.com/sgrove","followers_url":"https://api.github.com/users/sgrove/followers","following_url":"https://api.github.com/users/sgrove/following{/other_user}","gists_url":"https://api.github.com/users/sgrove/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrove/subscriptions","organizations_url":"https://api.github.com/users/sgrove/orgs","repos_url":"https://api.github.com/users/sgrove/repos","events_url":"https://api.github.com/users/sgrove/events{/privacy}","received_events_url":"https://api.github.com/users/sgrove/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgrove/tower","description":"A Straightforward and Extensible Static Site Generator","fork":true,"url":"https://api.github.com/repos/sgrove/tower","forks_url":"https://api.github.com/repos/sgrove/tower/forks","keys_url":"https://api.github.com/repos/sgrove/tower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgrove/tower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgrove/tower/teams","hooks_url":"https://api.github.com/repos/sgrove/tower/hooks","issue_events_url":"https://api.github.com/repos/sgrove/tower/issues/events{/number}","events_url":"https://api.github.com/repos/sgrove/tower/events","assignees_url":"https://api.github.com/repos/sgrove/tower/assignees{/user}","branches_url":"https://api.github.com/repos/sgrove/tower/branches{/branch}","tags_url":"https://api.github.com/repos/sgrove/tower/tags","blobs_url":"https://api.github.com/repos/sgrove/tower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgrove/tower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgrove/tower/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgrove/tower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgrove/tower/statuses/{sha}","languages_url":"https://api.github.com/repos/sgrove/tower/languages","stargazers_url":"https://api.github.com/repos/sgrove/tower/stargazers","contributors_url":"https://api.github.com/repos/sgrove/tower/contributors","subscribers_url":"https://api.github.com/repos/sgrove/tower/subscribers","subscription_url":"https://api.github.com/repos/sgrove/tower/subscription","commits_url":"https://api.github.com/repos/sgrove/tower/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgrove/tower/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgrove/tower/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgrove/tower/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgrove/tower/contents/{+path}","compare_url":"https://api.github.com/repos/sgrove/tower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgrove/tower/merges","archive_url":"https://api.github.com/repos/sgrove/tower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgrove/tower/downloads","issues_url":"https://api.github.com/repos/sgrove/tower/issues{/number}","pulls_url":"https://api.github.com/repos/sgrove/tower/pulls{/number}","milestones_url":"https://api.github.com/repos/sgrove/tower/milestones{/number}","notifications_url":"https://api.github.com/repos/sgrove/tower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgrove/tower/labels{/name}","releases_url":"https://api.github.com/repos/sgrove/tower/releases{/id}","created_at":"2015-03-06T18:11:13Z","updated_at":"2015-03-06T18:11:14Z","pushed_at":"2015-03-06T18:16:51Z","git_url":"git://github.com/sgrove/tower.git","ssh_url":"git@github.com:sgrove/tower.git","clone_url":"https://github.com/sgrove/tower.git","svn_url":"https://github.com/sgrove/tower","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"OCaml","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":"dsheets:master","ref":"master","sha":"efce7973a92c26f8234ef5d180a670906e3dc359","user":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"repo":{"id":31535096,"name":"tower","full_name":"dsheets/tower","owner":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsheets/tower","description":"A Straightforward and Extensible Static Site Generator","fork":false,"url":"https://api.github.com/repos/dsheets/tower","forks_url":"https://api.github.com/repos/dsheets/tower/forks","keys_url":"https://api.github.com/repos/dsheets/tower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsheets/tower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsheets/tower/teams","hooks_url":"https://api.github.com/repos/dsheets/tower/hooks","issue_events_url":"https://api.github.com/repos/dsheets/tower/issues/events{/number}","events_url":"https://api.github.com/repos/dsheets/tower/events","assignees_url":"https://api.github.com/repos/dsheets/tower/assignees{/user}","branches_url":"https://api.github.com/repos/dsheets/tower/branches{/branch}","tags_url":"https://api.github.com/repos/dsheets/tower/tags","blobs_url":"https://api.github.com/repos/dsheets/tower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsheets/tower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsheets/tower/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsheets/tower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsheets/tower/statuses/{sha}","languages_url":"https://api.github.com/repos/dsheets/tower/languages","stargazers_url":"https://api.github.com/repos/dsheets/tower/stargazers","contributors_url":"https://api.github.com/repos/dsheets/tower/contributors","subscribers_url":"https://api.github.com/repos/dsheets/tower/subscribers","subscription_url":"https://api.github.com/repos/dsheets/tower/subscription","commits_url":"https://api.github.com/repos/dsheets/tower/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsheets/tower/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsheets/tower/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsheets/tower/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsheets/tower/contents/{+path}","compare_url":"https://api.github.com/repos/dsheets/tower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsheets/tower/merges","archive_url":"https://api.github.com/repos/dsheets/tower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsheets/tower/downloads","issues_url":"https://api.github.com/repos/dsheets/tower/issues{/number}","pulls_url":"https://api.github.com/repos/dsheets/tower/pulls{/number}","milestones_url":"https://api.github.com/repos/dsheets/tower/milestones{/number}","notifications_url":"https://api.github.com/repos/dsheets/tower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsheets/tower/labels{/name}","releases_url":"https://api.github.com/repos/dsheets/tower/releases{/id}","created_at":"2015-03-02T10:26:23Z","updated_at":"2015-03-04T16:48:32Z","pushed_at":"2015-03-03T15:43:35Z","git_url":"git://github.com/dsheets/tower.git","ssh_url":"git@github.com:dsheets/tower.git","clone_url":"https://github.com/dsheets/tower.git","svn_url":"https://github.com/dsheets/tower","homepage":"","size":0,"stargazers_count":5,"watchers_count":5,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dsheets/tower/pulls/23"},"html":{"href":"https://github.com/dsheets/tower/pull/23"},"issue":{"href":"https://api.github.com/repos/dsheets/tower/issues/23"},"comments":{"href":"https://api.github.com/repos/dsheets/tower/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/dsheets/tower/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/dsheets/tower/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dsheets/tower/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/dsheets/tower/statuses/bdff5926deffd29522071ff5cd583d44e955a672"}}}}