Skip to content

Commit 7da24e8

Browse files
committed
add back debugging
1 parent 2a4e3b9 commit 7da24e8

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/code/LocalServerApiCalls.cs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -655,28 +655,28 @@ private Hashtable GetMetadataFromNupkg(string packageName, string packagePath, s
655655

656656
List<string> pkgTags = new List<string>();
657657
_cmdletPassedIn.WriteVerbose($"nuspecFilePath: {nuspecFilePath}");
658-
// string path = tempDiscoveryPath;
659-
// try {
660-
// // Get the files in the directory
661-
// string[] files = Directory.GetFiles(path);
662-
// // Get the directories in the directory
663-
// string[] directories = Directory.GetDirectories(path);
664-
// // Output the files
665-
// Console.WriteLine("Files:");
666-
// foreach (string file in files)
667-
// {
668-
// Console.WriteLine(file);
669-
// }
670-
// // Output the directories
671-
// Console.WriteLine("\nDirectories:");
672-
// foreach (string directory in directories)
673-
// {
674-
// Console.WriteLine(directory);
675-
// }
676-
// } catch (Exception e)
677-
// {
678-
// Console.WriteLine("An error occurred: " + e.Message);
679-
// }
658+
string path = tempDiscoveryPath;
659+
try {
660+
// Get the files in the directory
661+
string[] files = Directory.GetFiles(path);
662+
// Get the directories in the directory
663+
string[] directories = Directory.GetDirectories(path);
664+
// Output the files
665+
_cmdletPassedIn.WriteVerbose("Files:");
666+
foreach (string file in files)
667+
{
668+
_cmdletPassedIn.WriteVerbose(file);
669+
}
670+
// Output the directories
671+
_cmdletPassedIn.WriteVerbose("\nDirectories:");
672+
foreach (string directory in directories)
673+
{
674+
_cmdletPassedIn.WriteVerbose(directory);
675+
}
676+
} catch (Exception e)
677+
{
678+
_cmdletPassedIn.WriteVerbose("An error occurred: " + e.Message);
679+
}
680680

681681
if (File.Exists(psd1FilePath))
682682
{

0 commit comments

Comments
 (0)