mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 03:54:59 +08:00
fix (upload): #300
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user