Open Bug 480726 Opened 15 years ago Updated 1 year ago

nsIFile.copyTo follows symlinks as copyToFollowingLinks does

Categories

(Firefox :: File Handling, defect)

x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: georg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090228

nsIFile.copyTo follows symlinks as copyToFollowingLinks does, but it should copy the link instead of the target of the link.

I used XulRunner built from hg trunk pulled today

Reproducible: Always

Actual Results:  
it copies the target file or directory the link points to instead of copying the link it self. So both copyTo and copyToFollowingLinks do exactly the same.


Expected Results:  
copyTo should not follow the link but should copy the link.

https://developer.mozilla.org/en/NsIFile/copyTo
https://developer.mozilla.org/en/NsIFile/copyToFollowingLinks
Product: Core → Firefox
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.