Fixed TplFS.cat self

This commit is contained in:
Jiang Yio 2022-10-01 07:35:10 -04:00
parent a30ee4a3da
commit 3beb008969

View File

@ -123,7 +123,7 @@ export function TplFS(client, parent, desc) {
this.cat = async (path=[]) => { this.cat = async (path=[]) => {
if((typeof path === 'string') || (path instanceof String)) path = path.split('/'); if((typeof path === 'string') || (path instanceof String)) path = path.split('/');
if(path.length > 0) return await (await this.open(path)).raw_cat(); 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) => { this.raw_mkdir = async (name, tries=5, delay=1000) => {