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