From 418070a7ab5fb2eb7440598643781d55eb39a904 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 3 Aug 2000 22:17:43 +0000 Subject: [PATCH] Landing branch fix to the trunk. bug #47248 --> Implement MoveTo for Unix. --- xpcom/io/nsLocalFileUnix.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp index 5f96ad47e00f..dfeefe5229a0 100644 --- a/xpcom/io/nsLocalFileUnix.cpp +++ b/xpcom/io/nsLocalFileUnix.cpp @@ -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