Scanner

File System Scanner.

class Scanner (
Term
) {}

Constructors

this
this(string[] args, Term term)
Undocumented in source.

Members

Functions

filterUnderAnyOfPaths
F[] filterUnderAnyOfPaths(F[] files, string[] dirPaths)

Filter out files that lie under any of the directories dirPaths.

handleError
void handleError(Viz viz, NotNull!F file, bool isDir, size_t subIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
isSelectedFKind
KindHit isSelectedFKind(NotNull!RegFile regFile)
Undocumented in source. Be warned that the author may not have intended to support it.
prepare
void prepare(string[] args, Term term)
Undocumented in source. Be warned that the author may not have intended to support it.
printSkipped
void printSkipped(Viz viz, NotNull!RegFile regFile, size_t subIndex, NotNull!FKind kind, KindHit kindhit, string skipCause)
Undocumented in source. Be warned that the author may not have intended to support it.
processRegFile
void processRegFile(Viz viz, NotNull!Dir topDir, NotNull!RegFile theRegFile, NotNull!Dir parentDir, string[] keys, Symlink[] fromSymlinks, size_t subIndex, GStats gstats)

Process Regular File theRegFile.

readable
bool readable(stat_t stat, uid_t uid, gid_t gid, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
scanDir
void scanDir(Viz viz, NotNull!Dir topDir, NotNull!Dir theDir, string[] keys, Symlink[] fromSymlinks, int maxDepth)

Scan Directory parentDir for keys.

scanELFFile
void scanELFFile(Viz viz, NotNull!RegFile elfFile, string[] keys, GStats gstats)

Scan elfFile for ELF Symbols.

scanForKeys
size_t scanForKeys(Viz viz, NotNull!Dir topDir, NotNull!File theFile, NotNull!Dir parentDir, Symlink[] fromSymlinks, Source src, Keys keys, bool[] bistHits, ScanContext ctx)

Search for Keys keys in Source src.

scanRegFile
void scanRegFile(Viz viz, NotNull!Dir topDir, NotNull!RegFile theRegFile, NotNull!Dir parentDir, string[] keys, Symlink[] fromSymlinks, size_t subIndex)

Search for Keys keys in Regular File theRegFile.

scanSymlink
void scanSymlink(Viz viz, NotNull!Dir topDir, NotNull!Symlink theSymlink, NotNull!Dir parentDir, string[] keys, Symlink[] fromSymlinks)

Scan Symlink symlink at parentDir for keys Put results in results.

scanTopDirs
void scanTopDirs(Viz viz, string commaedKeysString)
Undocumented in source. Be warned that the author may not have intended to support it.
showContentDups
void showContentDups(Viz viz)

Show Statistics.

showStats
void showStats(Viz viz)

Show Statistics.

Variables

_beVerbose
bool _beVerbose;
Undocumented in source.
_brokenSymlinks
Symlink[] _brokenSymlinks;
Undocumented in source.
_caseFold
bool _caseFold;
Undocumented in source.
_currTime
SysTime _currTime;
Undocumented in source.
_hitsCountTotal
uint64_t _hitsCountTotal;
Undocumented in source.
_scanChunkSize
size_t _scanChunkSize;
Undocumented in source.
_showSkipped
bool _showSkipped;
Undocumented in source.
_topDirNames
string[] _topDirNames;
Undocumented in source.
addTags
string[] addTags;
Undocumented in source.
keys
string[] keys;
Undocumented in source.
keysBists
typeof(keys.map!bistogramOverRepresentation) keysBists;
Undocumented in source.
keysBistsUnion
Bist keysBistsUnion;
Undocumented in source.
keysXGrams
typeof(keys.map!(sparseUIntNGramOverRepresentation!NGramOrder)) keysXGrams;
Undocumented in source.
keysXGramsUnion
XGram keysXGramsUnion;
Undocumented in source.
listBinFKinds
bool listBinFKinds;
Undocumented in source.
listTxtFKinds
bool listTxtFKinds;
Undocumented in source.
outFile
ioFile outFile;
Undocumented in source.
removeTags
string[] removeTags;
Undocumented in source.
results
Results results;
Undocumented in source.
selFKindNames
string selFKindNames;
Undocumented in source.
selFKindsNote
string selFKindsNote;
Undocumented in source.

Meta