HF RL Explorer

Bug: copy() and copySync() can destroy file content on case-insensitive filesystems

Bug: copy() and copySync() can destroy file content on case-insensitive filesystems: a task in LegoFlow-SWE (Harbor dataset). On Windows and macOS (which use case-insensitive filesystems), calling fs.copy(src, dest) or fs.copySync(src, dest) where src and dest differ only by case (e.g…

The task

On Windows and macOS (which use case-insensitive filesystems), calling `fs.copy(src, dest)` or `fs.copySync(src, dest)` where `src` and `dest` differ only by case (e.g., `copy('C:\dummy.txt', 'C:\DUMMY.TXT')`) causes catastrophic data loss.

Part of Lego-X/LegoFlow-SWE.