mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
delete with system(rm)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2157 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: ac7b77df50
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-03-21 (Wed, 21 Mar 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2572,7 +2572,9 @@ bool CMovieBrowser::delFile_vlc(CFile& /*file*/)
|
||||
bool CMovieBrowser::delFile_std(CFile& file)
|
||||
{
|
||||
bool result = true;
|
||||
unlink(file.Name.c_str()); // fix: use full path
|
||||
char buf[FILENAME_MAX]={0};
|
||||
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());
|
||||
return(result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user