The copySync function in our file system utility has several critical bugs that need to be fixed. These…
The copySync function in our file system utility has several critical bugs that need to be fixed. These…: a task in LegoFlow-SWE (Harbor dataset). When the resolved source path and the resolved destination path (i.e., resolvedSrcPath and resolvedDestPath ) are the same, copySync should immediately…
The task
When the resolved source path and the resolved destination path (i.e., `resolvedSrcPath` and `resolvedDestPath`) are the same, `copySync` should immediately throw an error with the message `'Source and destination must not be the same.'` instead of proceeding. Currently, it silently corrupts the file (a read stream…
Part of Lego-X/LegoFlow-SWE.