nsIFile.copyTo follows symlinks as copyToFollowingLinks does

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
10 years ago
2 years ago

People

(Reporter: georg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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

Updated

2 years ago
Component: File Handling → File Handling
Product: Core → Firefox
You need to log in before you can comment on or make changes to this bug.