Auto-detects whether input is a file or directory. More...
#include <findfiles.hpp>
Public Member Functions | |
FindFiles () | |
Default constructor. More... | |
~FindFiles () | |
Default destructor. More... | |
Static Public Member Functions | |
static bool | readInput (ConfigOpts *) |
Detect if input is a file or a directory. More... | |
static bool | readDir (string, ConfigOpts *) |
Counts and records files from an input directory. More... | |
static bool | readFile (ConfigOpts *) |
Counts and records files from an input file. More... | |
Static Private Member Functions | |
static bool | isFiltered (string, ConfigOpts *) |
Check if file should be filtered. More... | |
Auto-detects whether input is a file or directory.
Reads input from file or directory and checks if file is not a video file and should be filtered. Files that pass are counted and stored in an array.
Definition at line 23 of file findfiles.hpp.
FindFiles::FindFiles | ( | ) |
Default constructor.
Definition at line 19 of file findfiles.cpp.
FindFiles::~FindFiles | ( | ) |
Default destructor.
Definition at line 23 of file findfiles.cpp.
|
staticprivate |
Check if file should be filtered.
fileName | - the show number |
confOpt | - the configuration object |
Definition at line 31 of file findfiles.cpp.
|
static |
Counts and records files from an input directory.
rDir | - the input directory |
confOpt | - the configuration object |
Definition at line 105 of file findfiles.cpp.
|
static |
Counts and records files from an input file.
confOpt | - the configuration object |
Definition at line 169 of file findfiles.cpp.
|
static |
Detect if input is a file or a directory.
confOpt | - the configuration object |
Definition at line 70 of file findfiles.cpp.