Fixed TplFS.cat self
This commit is contained in:
parent
a30ee4a3da
commit
3beb008969
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user