fix(core): update

This commit is contained in:
Philipp Kunz 2019-10-18 18:37:43 +02:00
parent 6596893ee5
commit 61145d5e80

View File

@ -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;
});
}
/**