Addressed readme feedback (removed './' from examples)

This commit is contained in:
kwkofler 2014-04-17 11:20:04 -04:00 committed by Kieran Sedgwick
parent cd5fc65ccd
commit 384f571c9b
1 changed files with 6 additions and 6 deletions

View File

@ -1413,19 +1413,19 @@ which share names by default.
Example Example
```javascript ```javascript
sh.mv('./file', './renamed', function(err) { sh.mv('file', 'renamed', function(err) {
if(err) throw err; if(err) throw err;
// ./file has been moved to the same directory under a new name // file has been moved to the same directory under a new name
}); });
sh.mv('./dir', './otherdir', function(err) { sh.mv('dir', 'otherdir', function(err) {
if(err) throw err; if(err) throw err;
// ./dir has been moved to ./otherdir/dir // dir has been moved to otherdir/dir
}); });
sh.mv('./file', './dir', function(err) { sh.mv('file', 'dir', function(err) {
if(err) throw err; if(err) throw err;
// ./file has been moved to ./dir/file // file has been moved to dir/file
}); });
``` ```