Issue: os.rmdir() follows symbolic links and deletes target contents; missing symlink creation and detection…
Issue: os.rmdir() follows symbolic links and deletes target contents; missing symlink creation and detection…: a task in LegoFlow-SWE (Harbor dataset). When using os.rmdir() on a directory that contains symbolic links to directories, the function currently recurses into those links, traversing…
The task
When using `os.rmdir()` on a directory that contains symbolic links to directories, the function currently recurses into those links, traversing into the target directories and deleting their contents. This is unexpected and destructive behavior. When a recursive removal encounters a symbolic link to a directory, it…
Part of Lego-X/LegoFlow-SWE.