Landing branch fix to the trunk. bug #47248 --> Implement MoveTo for Unix.

This commit is contained in:
mscott%netscape.com 2000-08-03 22:17:43 +00:00
parent c0143af2df
commit 418070a7ab

View File

@ -769,7 +769,10 @@ nsLocalFile::CopyToFollowingLinks(nsIFile *newParent, const char *newName)
NS_IMETHODIMP
nsLocalFile::MoveTo(nsIFile *newParent, const char *newName)
{
return NS_ERROR_NOT_IMPLEMENTED;
nsresult rv = CopyTo(newParent, newName);
if (NS_SUCCEEDED(rv))
rv = Delete(PR_TRUE);
return rv;
}
NS_IMETHODIMP