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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user