fix(core): update
This commit is contained in:
parent
6596893ee5
commit
61145d5e80
@ -123,9 +123,11 @@ export class Directory {
|
|||||||
/**
|
/**
|
||||||
* gets a sub directory
|
* gets a sub directory
|
||||||
*/
|
*/
|
||||||
public async getSubDirectory(): Promise<Directory> {
|
public async getSubDirectoryByName(dirNameArg: string): Promise<Directory> {
|
||||||
return this;
|
const directories = await this.listDirectories();
|
||||||
// TODO
|
return directories.find(directory => {
|
||||||
|
return directory.name === dirNameArg;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user