{"issue":{"created_at":"2011-11-22T22:58:07Z","state":"open","updated_at":"2011-11-23T04:07:24Z","user":{"gravatar_id":"aae6d4accf06084efc742f85d3806b33","id":94782,"url":"https://api.github.com/users/ixti","login":"ixti","avatar_url":"https://secure.gravatar.com/avatar/aae6d4accf06084efc742f85d3806b33?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Although it's nice to do not bother about dst dir, but as fs-tools tries to mimic UNIX commands in general, cp should not attempt create dst dir. There's no problem to call mkdir_p manually before for the user:\r\n\r\n``` javascript\r\nfstools.mkdir_p(dirname(dst), function (err) {\r\n  if (err) {\r\n    // handle error\r\n    return\r\n  }\r\n\r\n  fstools.cp(src, dst, function (err) {\r\n    // ....\r\n  });\r\n});\r\n```\r\n\r\nMore than that I believe there should be three different functions: `cp`, `cp_r` and `cp_a`.","assignee":null,"id":2324173,"labels":[],"number":8,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"cp() should not create dst dir","closed_at":null,"html_url":"https://github.com/nodeca/fs-tools/issues/8","milestone":null,"url":"https://api.github.com/repos/nodeca/fs-tools/issues/8"},"action":"created","comment":{"created_at":"2011-11-23T04:07:24Z","updated_at":"2011-11-23T04:07:24Z","user":{"gravatar_id":"293e9e28753b0d7e4e4e08a4a81ad247","id":319465,"url":"https://api.github.com/users/puzrin","login":"puzrin","avatar_url":"https://secure.gravatar.com/avatar/293e9e28753b0d7e4e4e08a4a81ad247?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"WTF? We don't rewrite *nix ih js. We do convenient tools for our needs. Don't multiply functions count.","id":2844762,"url":"https://api.github.com/repos/nodeca/fs-tools/issues/comments/2844762"}}