file: honor server's remote-root option (remove root path from displayed path and returned value)

This commit is contained in:
jean-emmanuel 2025-09-15 09:05:37 +02:00
parent 9ef97ca1c3
commit 4dbc572ea1
4 changed files with 17 additions and 7 deletions

View file

@ -567,7 +567,8 @@ export default class Callbacks {
list = list.filter(x=>x.folder || x.name.match(extRe))
this.ipcServer.send('listDir', {
path: p,
files: list
files: list,
root: root
}, clientId)
settings.write('last-dir', p, false, false)
}