Bug 482942. Implement nsILocalFile::DELETE_ON_CLOSE. r=bsmedberg
This commit is contained in:
@@ -731,6 +731,10 @@ nsLocalFile::OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval)
|
||||
if (*_retval)
|
||||
return NS_OK;
|
||||
|
||||
if (flags & DELETE_ON_CLOSE) {
|
||||
PR_Delete(mWorkingPath.get());
|
||||
}
|
||||
|
||||
return NS_ErrorAccordingToNSPR();
|
||||
}
|
||||
|
||||
@@ -749,8 +753,6 @@ nsLocalFile::OpenANSIFileDesc(const char *mode, FILE * *_retval)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLocalFile::Create(PRUint32 type, PRUint32 attributes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user