blob: f027a8ffacf3d3f2a41c5e42ef5a95ef9b00f86a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "imagelist.h"
#include "tools.h"
#include "setup.h"
cDirList::cDirList(cImageList &ImageList)
{
char *buffer = NULL;
OptExclude("^lost\\+found$"); // lost+found Dir
OptExclude("^\\."); // hidden Files
OptExclude("\\.sdel$"); // del Files
OptExclude("\\.smove$"); // move Files
cTokenizer *token = new cTokenizer(ImageList.GetDirContains(), "@");
for(int i = 1; i <= token->Count(); i++)
{
if(0 < asprintf(&buffer, "^%s$", token->GetToken(i))) {
OptExclude(buffer);
FREENULL(buffer);
}
}
OptSort((eFileList)DVDSwitchSetup.SortMode);
OptFilterType(tDir);
delete(token);
}
|