diff --git a/htdocs/tplfs.mjs b/htdocs/tplfs.mjs index c70d7ff..962721f 100644 --- a/htdocs/tplfs.mjs +++ b/htdocs/tplfs.mjs @@ -123,7 +123,7 @@ export function TplFS(client, parent, desc) { this.cat = async (path=[]) => { if((typeof path === 'string') || (path instanceof String)) path = path.split('/'); if(path.length > 0) return await (await this.open(path)).raw_cat(); - else return await this.raw_cat(path[0]); + else return await this.raw_cat(); }; this.raw_mkdir = async (name, tries=5, delay=1000) => {