19 string fileOut, tmpOut;
22 fileOut =
SLASH"clerk.conf";
24 tmpOut = dirOut + fileOut;
26 dirLoc = tmpOut.c_str();
28 cout <<
"Writing " + tmpOut +
"... ";
33 <<
"# " << tmpOut << endl
35 <<
"# Configuration file for the clerk" << endl
37 <<
"#########################################################" << endl
39 <<
"# Location of blacklist" << endl
40 <<
"BLACKLIST="LOC1"blacklist" << endl
42 <<
"# Location of showlist" << endl
43 <<
"SHOWLIST="LOC1"showlist" << endl
45 <<
"#########################################################" << endl
47 <<
"# Recurse directories" << endl
48 <<
"RECURSE=NO" << endl
50 <<
"# Input directory/file" << endl
53 <<
"# Output directory" << endl
56 <<
"# Script file location and name" << endl
59 <<
"# Log file location and name" << endl
60 <<
"LOG="LOC1"clerk.log" << endl
62 <<
"# Xml file location and name" << endl
63 <<
"XML="LOC1"clerk.xml" << endl
65 <<
"# Gap file location and name" << endl
66 <<
"GAP="LOC1"clerk.gap" << endl
68 <<
"#########################################################" << endl
70 <<
"# Default task (rename|move|copy)" << endl
71 <<
"MODE=move" << endl
73 <<
"# Default mode (execute|test|script)" << endl
74 <<
"EXEC=script" << endl
76 <<
"# Default output mode (quiet|summary|verbose)" << endl
77 <<
"LEVEL=verbose" << endl
79 <<
"#########################################################" << endl
81 <<
"# max file size, in bytes" << endl
82 <<
"# 629145600 = 600MB" << endl
83 <<
"SIZE=2516582400" << endl
85 <<
"# Filter out the following files" << endl
86 <<
"FILTER=txt;jpg;png;gif;nfo;rar;zip;cbz;url;srt;idx;sub;sfv;mht;htm;html;css;torrent;vob;exe;event;db;ini;r;" << endl
88 <<
"# Filter delimiter" << endl
89 <<
"FILTERDELIM=;" << endl
91 <<
"# Showlist delimiters" << endl
92 <<
"SHOWDELIM=/;*" << endl
94 <<
"# Space filler" << endl
95 <<
"FILLER=._" << endl
97 <<
"# Title separator" << endl
98 <<
"# Name SxxExx Title.avi || Name SxxExx - Title.avi" << endl
99 <<
"SEPARATE= - " << endl
101 <<
"# Season Folder is a double digit" << endl
102 <<
"# [01, 02, 03] vs [1, 2, 3]" << endl
103 <<
"SEASONDD=NO" << endl
105 <<
"# Words that should not be uppercased" << endl
106 <<
"NOCASE= A * Amid * An * And * As * At * Atop * But * By * Down * For * From * In * Into * Is * Like * No * Nor * Near * Next * Of * Off * On * Onto * Or * Out * Over * Pace * Past * Per * Plus * Pro * Qua * Save * So * Than * The * Then * Till * To * Up * Upon * Vs * Via * Vice * With * Yet *" << endl
108 <<
"# Nocase delimiter" << endl
109 <<
"NOCASEDELIM=*" << endl;
113 cout <<
"complete" << endl;
static void writeConfigFile(string)
Generates a default configuration file in the given directory.
The ConfigOpts class stores all config options, settings, and flags for clerk.