18 #ifndef __FILEMANAGE__ 19 #define __FILEMANAGE__ 30 vector<string> pathlist;
31 static char separator;
32 static string buildPath(
const vector<string> &pathels,
int level);
33 static bool testDevelopmentPath(
const vector<string> &pathels,
int level,
string &root);
34 static bool testInstallPath(
const vector<string> &pathels,
int level,
string &root);
36 void addDir2Path(
const string &path);
37 void addCurrentDir(
void);
38 void findFile(
string &res,
const string &name)
const;
39 void matchList(vector<string> &res,
const string &match,
bool isSuffix)
const;
40 static bool isDirectory(
const string &path);
41 static void matchListDir(vector<string> &res,
const string &match,
bool isSuffix,
const string &dir,
bool allowdot);
42 static void directoryList(vector<string> &res,
const string &dirname,
bool allowdot=
false);
43 static void scanDirectoryRecursive(vector<string> &res,
const string &matchname,
const string &rootpath,
int maxdepth);
44 static void splitPath(
const string &full,
string &path,
string &base);
45 static bool isAbsolutePath(
const string &full) {
if (full.empty())
return false;
return (full[0] == separator); }
46 static string discoverGhidraRoot(
const char *argv0);
Definition: filemanage.hh:29