mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
moviebrowser.cpp: delFile: revert to unlink()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 41f365f308
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-06-16 (Sat, 16 Jun 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2575,10 +2575,10 @@ bool CMovieBrowser::delFile_vlc(CFile& /*file*/)
|
|||||||
bool CMovieBrowser::delFile_std(CFile& file)
|
bool CMovieBrowser::delFile_std(CFile& file)
|
||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
char buf[FILENAME_MAX]={0};
|
int errno = unlink(file.Name.c_str());
|
||||||
snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s\" &", file.Name.c_str());
|
|
||||||
system(buf);
|
|
||||||
TRACE(" delete file: %s\r\n",file.Name.c_str());
|
TRACE(" delete file: %s\r\n",file.Name.c_str());
|
||||||
|
if(errno)
|
||||||
|
result = false;
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user