{"action":"created","issue":{"url":"https://api.github.com/repos/Wyamio/Wyam/issues/158","labels_url":"https://api.github.com/repos/Wyamio/Wyam/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/Wyamio/Wyam/issues/158/comments","events_url":"https://api.github.com/repos/Wyamio/Wyam/issues/158/events","html_url":"https://github.com/Wyamio/Wyam/issues/158","id":123145342,"number":158,"title":"CopyFiles module potential bug","user":{"login":"avishnyakov","id":3785585,"avatar_url":"https://avatars.githubusercontent.com/u/3785585?v=3","gravatar_id":"","url":"https://api.github.com/users/avishnyakov","html_url":"https://github.com/avishnyakov","followers_url":"https://api.github.com/users/avishnyakov/followers","following_url":"https://api.github.com/users/avishnyakov/following{/other_user}","gists_url":"https://api.github.com/users/avishnyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/avishnyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avishnyakov/subscriptions","organizations_url":"https://api.github.com/users/avishnyakov/orgs","repos_url":"https://api.github.com/users/avishnyakov/repos","events_url":"https://api.github.com/users/avishnyakov/events{/privacy}","received_events_url":"https://api.github.com/users/avishnyakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-20T08:55:55Z","updated_at":"2015-12-20T16:38:52Z","closed_at":null,"body":"Aiming to copy all images from src to des leaving patsh by default.\r\nHave 4 *.gif files under /folder/subfolder/img and here is what's happening:\r\n\r\n0 docs, but 4 docs were expected:\r\n```cs\r\nPipelines.Add(\"site-resources-images\",\r\n\tCopyFiles(@\"*.gif\"),\r\n\tCopyFiles(@\"*.jpeg\"),\r\n\tCopyFiles(@\"*.jpg\"),\r\n\tCopyFiles(@\"*.png\")\r\n);\r\n\r\n Executing pipeline \"site-resources-images\" (5/6) with 4 child module(s)\r\n        Executed pipeline \"site-resources-images\" (5/6) in 1066 ms resulting in 0 output document(s\r\n)\r\n```\r\n\r\n4 docs, as expected:\r\n```cs\r\nPipelines.Add(\"site-resources-images\",\r\n\tCopyFiles(@\"*.gif\")\r\n//\tCopyFiles(@\"*.jpeg\"),\r\n//\tCopyFiles(@\"*.jpg\"),\r\n//\tCopyFiles(@\"*.png\")\r\n);\r\n\r\n  Executing pipeline \"site-resources-images\" (5/6) with 1 child module(s)\r\n        Executed pipeline \"site-resources-images\" (5/6) in 12 ms resulting in 4 output document(s)\r\n)\r\n```\r\nHm... why :)"},"comment":{"url":"https://api.github.com/repos/Wyamio/Wyam/issues/comments/166134229","html_url":"https://github.com/Wyamio/Wyam/issues/158#issuecomment-166134229","issue_url":"https://api.github.com/repos/Wyamio/Wyam/issues/158","id":166134229,"user":{"login":"daveaglick","id":1020407,"avatar_url":"https://avatars.githubusercontent.com/u/1020407?v=3","gravatar_id":"","url":"https://api.github.com/users/daveaglick","html_url":"https://github.com/daveaglick","followers_url":"https://api.github.com/users/daveaglick/followers","following_url":"https://api.github.com/users/daveaglick/following{/other_user}","gists_url":"https://api.github.com/users/daveaglick/gists{/gist_id}","starred_url":"https://api.github.com/users/daveaglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveaglick/subscriptions","organizations_url":"https://api.github.com/users/daveaglick/orgs","repos_url":"https://api.github.com/users/daveaglick/repos","events_url":"https://api.github.com/users/daveaglick/events{/privacy}","received_events_url":"https://api.github.com/users/daveaglick/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T16:38:52Z","updated_at":"2015-12-20T16:38:52Z","body":"The CopyFiles module outputs new documents containing information from each file that was copied. There's no \"pass-through\" of information from the input documents. In other words, the input documents are lost (to keep them, wrap the subsiquent CopyFiles modules in a Concat module).\r\n\r\nIn your case, the first CopyFiles should have actually copied the files and output documents for each, but the following ones didn't copy anything and thus output empty document sets (that's why you saw the 4 outputs when commenting out the other ones).\r\n\r\nThis could be documented better, so I'll leave this issue open as a reminder until I update the docs."}}