Code cleanup
This commit is contained in:
parent
2283ee8fcc
commit
43cfbae544
|
|
@ -79,10 +79,19 @@ namespace E2ETests.SmokeTestsUsingStore
|
|||
private string GetDirectoryStructure(string publishedOutputDir)
|
||||
{
|
||||
var directoryStructure = new StringBuilder();
|
||||
directoryStructure.AppendLine();
|
||||
var dir = new DirectoryInfo(publishedOutputDir);
|
||||
foreach (var fileSystemInfo in dir.GetFileSystemInfos())
|
||||
{
|
||||
directoryStructure.AppendLine(fileSystemInfo.Name);
|
||||
var isDirectory = fileSystemInfo as DirectoryInfo;
|
||||
if (isDirectory != null)
|
||||
{
|
||||
directoryStructure.AppendLine(fileSystemInfo.Name + "/");
|
||||
}
|
||||
else
|
||||
{
|
||||
directoryStructure.AppendLine(fileSystemInfo.Name);
|
||||
}
|
||||
}
|
||||
return directoryStructure.ToString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue