( src: string | URL, dest: string | URL, options: InternalCopyOptions, )
| 113 | } |
| 114 | /* copy file to dest synchronously */ |
| 115 | function copyFileSync( |
| 116 | src: string | URL, |
| 117 | dest: string | URL, |
| 118 | options: InternalCopyOptions, |
| 119 | ) { |
| 120 | ensureValidCopySync(src, dest, options); |
| 121 | Deno.copyFileSync(src, dest); |
| 122 | if (options.preserveTimestamps) { |
| 123 | const statInfo = Deno.statSync(src); |
| 124 | assertIsDate(statInfo.atime, "statInfo.atime"); |
| 125 | assertIsDate(statInfo.mtime, "statInfo.mtime"); |
| 126 | Deno.utimeSync(dest, statInfo.atime, statInfo.mtime); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /* copy symlink to dest */ |
| 131 | async function copySymLink( |
no test coverage detected