mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-30 13:02:47 +02:00
fix readlink bug
This commit is contained in:
parent
648d595807
commit
a7af875a65
|
@ -243,7 +243,7 @@ router["/tabs/by-title"] = {
|
|||
router["/tabs/by-title/*"] = {
|
||||
// a symbolic link to /tabs/by-id/[id for this tab]
|
||||
async getattr({path}) {
|
||||
const st_size = (await this.readlink(path)).length + 1;
|
||||
const st_size = (await this.readlink({path})).length + 1;
|
||||
return {
|
||||
st_mode: unix.S_IFLNK | 0444,
|
||||
st_nlink: 1,
|
||||
|
@ -261,7 +261,7 @@ router["/tabs/by-title/*"] = {
|
|||
router["/tabs/last-focused"] = {
|
||||
// a symbolic link to /tabs/by-id/[id for this tab]
|
||||
async getattr({path}) {
|
||||
const st_size = (await this.readlink(path)).length + 1;
|
||||
const st_size = (await this.readlink({path})).length + 1;
|
||||
return {
|
||||
st_mode: unix.S_IFLNK | 0444,
|
||||
st_nlink: 1,
|
||||
|
|
Loading…
Reference in a new issue