1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 23:59:59 -05:00
denoland-deno/ext/node/polyfills/_fs
Divy Srivastava df062d2c78
fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745)
Fixes https://github.com/denoland/deno/issues/20803
Fixes https://github.com/denoland/deno/issues/21723

Performance: copying a 48GiB rust `target` folder (recursive)
| Platform  | `deno` | `node v21.5` | Improvement |
| -------- | ------- | ------- | ------- |
| macOS (APFS) |   3.1secs  |  127.99 secs |  **42x** |
| Windows | 18.3secs | 67.2secs |  **3.8x** |

Copying files with varying sizes:


![image](https://github.com/denoland/deno/assets/34997667/58932652-6f7a-47f5-8504-896dc9ab4ddc)
2024-01-05 18:28:33 +05:30
..
_fs_access.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_appendFile.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_chmod.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_chown.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_close.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_common.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_constants.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_copy.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_cp.js fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745) 2024-01-05 18:28:33 +05:30
_fs_dir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_dirent.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_exists.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_fdatasync.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_fstat.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_fsync.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_ftruncate.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_futimes.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_link.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_lstat.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_mkdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_mkdtemp.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_open.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_opendir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_read.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_readdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_readFile.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_readlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_realpath.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rename.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rm.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rmdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_stat.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_symlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_truncate.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_unlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_utimes.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_watch.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_write.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_write.mjs chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
_fs_writeFile.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_writev.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_writev.mjs refactor: rename built-in node modules from ext:deno_node/ to node: (#19680) 2023-07-02 20:19:30 +02:00