1
0

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
vutov
2018-05-14 19:14:51 +03:00
21 changed files with 219 additions and 57 deletions

View File

@@ -105,11 +105,16 @@ namespace DockerGenerator
private string FindLocation(string path)
{
string directory = path;
int i = 0;
while(true)
{
if(i > 10)
throw new DirectoryNotFoundException(directory);
if(Directory.Exists(path))
return path;
path = Path.Combine("..", path);
i++;
}
}
}