mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
fix (path): set the path & link of a newly created folder / file
This commit is contained in:
@@ -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'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user