nodeca/fs-tools — Issue #8: cp() should not create dst dir
Author: ixti
Created: 2011-11-22 22:58:07+00:00
State: open

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:

``` javascript
fstools.mkdir_p(dirname(dst), function (err) {
if (err) {
// handle error
return
}

fstools.cp(src, dst, function (err) {
// ....
});
});
```

More than that I believe there should be three different functions: `cp`, `cp_r` and `cp_a`.