mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
fix (upload): #300
This commit is contained in:
parent
3bdbba92df
commit
10029f687f
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue