Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
new crawling algorithm
AppImage fixes #20
fix #37
  • Loading branch information
yatima1460 committed Jun 14, 2019
1 parent 553d3bf commit f591bb6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 432 deletions.
47 changes: 14 additions & 33 deletions Source/Backend/API.d
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
module API;

import std.algorithm : canFind, filter, map;
import std.container : Array;

import std.array : array;
import std.array : split;

import std.array : array, split;
import std.process : executeShell;
import std.string : indexOf;

import std.algorithm : canFind, filter, map;

import std.regex: Regex, regex;
import std.file : dirEntries, SpanMode, DirEntry, readText, FileException;
import std.path : buildPath;
import std.conv: to;

import Utils : readListFiles;
// import Utils : logConsole;

import Logger : Logger;

import Crawler : Crawler;
import FileInfo : FileInfo;

import std.file : dirEntries, SpanMode, DirEntry, readText, FileException;
import std.path : buildPath;

// TODO: register delegate for messagebox show called from UI frontend library

import std.regex: Regex, regex;
import std.conv: to;
import std.algorithm : map;


/*
NOTE: the basic idea is to use logConsole inside debug{ } like a log trace, only when it's something that happens more than once, like a crawler finding files
Errors should always be logged and should never be inside debug{ }
*/


class DrillAPI
{
Expand Down Expand Up @@ -83,17 +64,17 @@ public:
}
}

void startCrawler(immutable(string) mountpoint, immutable(string) search,
void delegate(immutable(FileInfo) result) resultFound)
{
// void startCrawler(immutable(string) mountpoint, immutable(string) search,
// void delegate(immutable(FileInfo) result) resultFound)
// {

}
// }

void startCrawler(immutable(string) mountpoint, immutable(string) search,
void delegate(immutable(FileInfo) result) resultFound)
{
// void startCrawler(immutable(string) mountpoint, immutable(string) search,
// void delegate(immutable(FileInfo) result) resultFound)
// {

}
// }

/**
Starts the crawling, every crawler will filter on its own.
Expand Down
Loading

0 comments on commit f591bb6

Please sign in to comment.