Closed Bug 1760886 Opened 9 months ago Closed 8 months ago

mozfile.remove() does not remove broken symlinks

Categories

(Testing :: Mozbase, defect)

Default
defect

Tracking

(firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

Attachments

(1 file)

https://docs.python.org/3/library/os.path.html#os.path.exists says Returns False for broken symbolic links.

https://docs.python.org/3/library/os.path.html#os.path.lexists says Returns True for broken symbolic links.

I imagine that if you call mozfile.remove() on a broken symlink you still want it removed. We certainly do over in Bug 1754723.

Pushed by tritter@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5ef6197863e
Make mozfile.remove remove broken symlinks r=gbrown
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
No longer blocks: 1754723
See Also: → 1760719
You need to log in before you can comment on or make changes to this bug.