Closed Bug 124002 Opened 24 years ago Closed 23 years ago

Add some info/doc to nsIFile::copyTo function.

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: skasinathan, Assigned: dougt)

References

Details

(Keywords: topembed)

Looks like copyTo(..) will fail if the file already exists in the destination directory. Can you add this comment in the iface. Thanks!
Target Milestone: --- → mozilla1.0
Keywords: topembed
Blocks: 99160
Index: nsIFile.idl =================================================================== RCS file: /cvsroot/mozilla/xpcom/io/nsIFile.idl,v retrieving revision 1.49 diff -u -r1.49 nsIFile.idl --- nsIFile.idl 29 Jan 2002 21:42:38 -0000 1.49 +++ nsIFile.idl 7 Mar 2002 23:54:01 -0000 @@ -102,6 +102,9 @@ * If 'this' is not created we will return an error * (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST). * + * copyTo may fail if the file already exists in the destination + * directory + * * copyTo will NOT resolve aliases/shortcuts during the copy. * * @param newParentDir
i just added a period to the end of that sentense.
Checking in nsIFile.idl; /cvsroot/mozilla/xpcom/io/nsIFile.idl,v <-- nsIFile.idl new revision: 1.50; previous revision: 1.49 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.