better indexing and classifier
This commit is contained in:
parent
38c2a72fe0
commit
98b53d3a33
9 changed files with 168 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue