Added 'IgnoreFiles' to RemoveEmptyDirectories()

This commit is contained in:
Klaus Schmidinger
2012-09-30 13:05:14 +02:00
parent 3cc12a401a
commit f1000d75c0
6 changed files with 56 additions and 30 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: videodir.c 2.3 2012/09/01 10:57:44 kls Exp $
* $Id: videodir.c 2.4 2012/09/30 12:06:33 kls Exp $
*/
#include "videodir.h"
@@ -229,11 +229,11 @@ cString PrefixVideoFileName(const char *FileName, char Prefix)
return NULL;
}
void RemoveEmptyVideoDirectories(void)
void RemoveEmptyVideoDirectories(const char *IgnoreFiles[])
{
cVideoDirectory Dir;
do {
RemoveEmptyDirectories(Dir.Name());
RemoveEmptyDirectories(Dir.Name(), false, IgnoreFiles);
} while (Dir.Next());
}