better indexing and classifier

This commit is contained in:
ston1th 2019-05-03 00:05:51 +02:00
commit 98b53d3a33
9 changed files with 168 additions and 32 deletions

View file

@ -59,6 +59,9 @@ func (db *DB) NewFile(id, path string) (err error) {
}
func (db *DB) MoveFile(op, np string) error {
if !db.IsIndexed(op) {
return nil
}
id, err := db.DeleteFile(op)
if err != nil {
return err