Lines Matching defs:newName

599 /* void copyTo (in nsIFile newParentDir, in AString newName); */
600 NS_IMETHODIMP nsLocalFile::CopyTo(nsIFile *newParentDir, const nsAString& newName)
602 return CopyInternal(newParentDir, newName, PR_FALSE);
605 /* [noscrpit] void CopyToNative (in nsIFile newParentDir, in ACString newName); */
606 NS_IMETHODIMP nsLocalFile::CopyToNative(nsIFile *newParentDir, const nsACString& newName)
608 return CopyInternal(newParentDir, NS_ConvertUTF8toUTF16(newName), PR_FALSE);
611 /* void copyToFollowingLinks (in nsIFile newParentDir, in AString newName); */
612 NS_IMETHODIMP nsLocalFile::CopyToFollowingLinks(nsIFile *newParentDir, const nsAString& newName)
614 return CopyInternal(newParentDir, newName, PR_TRUE);
617 /* [noscript] void copyToFollowingLinksNative (in nsIFile newParentDir, in ACString newName); */
618 NS_IMETHODIMP nsLocalFile::CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString& newName)
620 return CopyInternal(newParentDir, NS_ConvertUTF8toUTF16(newName), PR_TRUE);
623 /* void moveTo (in nsIFile newParentDir, in AString newName); */
624 NS_IMETHODIMP nsLocalFile::MoveTo(nsIFile *newParentDir, const nsAString& newName)
626 return MoveToNative(newParentDir, NS_ConvertUTF16toUTF8(newName));
629 /* [noscript] void moveToNative (in nsIFile newParentDir, in ACString newName); */
630 NS_IMETHODIMP nsLocalFile::MoveToNative(nsIFile *newParentDir, const nsACString& newName)
651 if (newName.IsEmpty())
674 if (!newName.IsEmpty())
675 destPath.Append(NS_LITERAL_CSTRING("/") + newName);
688 rv = CopyToNative(parentDir, newName);
2198 const nsAString& newName,
2217 if (newName.IsEmpty())
2244 ::FSCopyObject(&srcFSRef, &destFSRef, newName.Length(),
2245 newName.Length() ? PromiseFlatString(newName).get() : NULL,