fix (upload): #300

This commit is contained in:
Mickael Kerjean
2020-09-17 00:24:37 +10:00
parent 3bdbba92df
commit 10029f687f

View File

@ -429,10 +429,11 @@ class FileSystem{
});
}
_add(path, icon){
return cache.upsert(cache.FILE_PATH, [currentShare(), dirname(path)], function(res){
return cache.upsert(cache.FILE_PATH, [currentShare(), dirname(path)], (res) => {
if(!res || !res.results){
res = {
path: path,
share: currentShare(),
results: [],
access_count: 0,
last_access: null,