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

git-svn-id: svn://10.0.0.236/trunk@75526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
2000-08-03 22:17:43 +00:00
parent f0c8471679
commit 6346d8dd30

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