summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools.c b/tools.c
new file mode 100644
index 0000000..35ca8e2
--- /dev/null
+++ b/tools.c
@@ -0,0 +1,27 @@
+#include "tools.h"
+#include "imagelist.h"
+#include "setup.h"
+
+cDirList::cDirList(void)
+{
+ 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++)
+ {
+ asprintf(&buffer, "^%s$", token->GetToken(i));
+ OptExclude(buffer);
+ FREENULL(buffer);
+ }
+
+ OptSort((eFileList)DVDSwitchSetup.SortMode);
+ OptFilterType(tDir);
+
+ delete(token);
+}
+