mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-30 12:16:07 +01:00
fix (path): set the path & link of a newly created folder / file
This commit is contained in:
parent
ec4b7d236f
commit
30ea5c433e
1 changed files with 2 additions and 2 deletions
|
|
@ -441,7 +441,7 @@ class FileSystem{
|
|||
return cache.upsert(cache.FILE_PATH, [currentShare(), dirname(path)], function(res){
|
||||
if(!res || !res.results){
|
||||
res = {
|
||||
path: dirname(path),
|
||||
path: path,
|
||||
results: [],
|
||||
access_count: 0,
|
||||
last_access: null,
|
||||
|
|
@ -449,7 +449,7 @@ class FileSystem{
|
|||
};
|
||||
}
|
||||
let file = {
|
||||
path: dirname(path),
|
||||
path: path,
|
||||
name: basename(path),
|
||||
type: /\/$/.test(path) ? 'directory' : 'file'
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue