Daniel Kennedy
ecb2335201
@actions/io: convert to ESM module
2026-01-28 13:33:17 -05:00
Vallie Joseph and Cory Miller
78360b6058
Removing childprocess for rmRF ( #1373 )
...
* try awaiting spawn on windows
* formatting
* updating package-lock
* .
* .
* updating packages
* adding sync rm
* test with sync
* pointing to rmsync
* adding error handling
* testing rmsync
* adding try/catch
* adding windows conditional for locked file
* switch to contians
* fixing formatting
* fixing formatting
* fixing formatting
* adding enonet catch for windows files
* adding enonet catch for windows files
* adding catch for file not found
* updating stat call
* updating stat call
* adding conditonal for symlink
* removing symlink test
* adding ebusy check
* changing error check
* changing error check
* changing error check
* changing error check
* cleanup and comments
* Update packages/io/__tests__/io.test.ts
Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com >
* Update packages/io/src/io-util.ts
Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com >
* moving comment placement
* updating eperm
* change back to ebusy
* Update packages/io/__tests__/io.test.ts
Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com >
* Formatting
* converting to async
---------
Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com >
2023-03-15 14:51:02 -04:00
Thomas Boop
fd92c6059a
Update escaping rules in io's rmRF ( #828 )
...
* Better Handling of escaping in rmrf
2021-06-07 14:16:16 -04:00
Luke Tomlinson
87cbde80d1
Add option to cp to only copy contents of directory ( #788 )
...
* Add option to not copy source directory
* Cleanup
* Update condition to be consistent
2021-05-05 09:40:12 -04:00
Thomas Boop and Linus Unnebäck
9d8df321e0
Simplify mkdirP implementation ( #781 )
...
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se >
2021-04-28 14:38:41 -04:00
Sora Morimoto
491b3ba63a
Add findInPath method to locate all matching executables in the system path ( #609 )
...
Signed-off-by: Sora Morimoto <sora@morimoto.io >
2021-04-02 12:22:30 -04:00
Danny McCormick
383349ad37
Comment nit
2019-08-21 12:54:24 -04:00
Danny McCormick
607332c77e
Fix cp and mv ( #26 )
2019-07-09 09:56:01 -04:00
Danny McCormick
303f783f9a
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
92e896a599
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