1
0
Fork 0
Commit Graph

3 Commits (dfccb207bfeb110f4d05cd3a8716e2ddad9aa096)

Author SHA1 Message Date
Danny McCormick d919136160
Fix cp and mv (#26) 2019-07-09 09:56:01 -04:00
Danny McCormick 8ebbf59cb3
Copy file into directory (#11)
* Copy file into directory

* Add test and check if file exists before stating

* Format
2019-05-28 13:57:16 -04:00
Danny McCormick 08db5110c6
Add io (#5)
* Add io lib

* io cleanup

* Run format script

* Fix lint errors with autofix

* Fix equality lint errors

* Rename ioUtil to io-util

* Add no-import-requires

* Run auto-fix lint

* Remove lint errors

* Use Boolean() to convert options

- `CopyOptions` on `cp` now defaults to empty
- Setting option values is easier now

* Rewrite packages/io to be fully async

* Move IS_WINDOWS into ioUtil

* DRY up cp/mv by moving shared code into move function

* Remove unc support, change isDirectory call to stat

* Tighter try catches

* more concise extensions search

* Allow isDirectory to be stat or lstat

* format

* Shell out to rm -rf

* Remove unc comment

* Export fs.promises from io-util

* Remove unknown error message

* Create an optimistic mkdirp

* Update io-util.ts

* Update io-util.ts

* Update io.test.ts

* Fix tests for mkdirP
2019-05-22 16:05:34 -04:00