This commit is contained in:
Joao Moreno
2017-12-06 12:46:11 +01:00
parent 4a227febd1
commit f3b04c11f7

View File

@@ -45,6 +45,10 @@ interface OpenRepository extends Disposable {
}
function isParent(parent: string, child: string): boolean {
if (parent.charAt(parent.length - 1) !== path.sep) {
parent += path.sep;
}
return child.startsWith(parent);
}