sync: avoid depending on database when importing files
This commit is contained in:
parent
16c337c2bc
commit
aee3500fdf
1 changed files with 0 additions and 5 deletions
|
@ -150,11 +150,6 @@ func ImportFile(i Importer, URI string, next func(string, string) (interface{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure no more file is registered with this path
|
|
||||||
if f, err := fic.GetFileByPath(dest); err == nil {
|
|
||||||
f.Delete()
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := os.MkdirAll(path.Dir(dest), 0755); err != nil {
|
if err := os.MkdirAll(path.Dir(dest), 0755); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue