Skip to content

Commit

Permalink
add back debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
anamnavi committed Oct 10, 2024
1 parent 2a4e3b9 commit 7da24e8
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/code/LocalServerApiCalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -655,28 +655,28 @@ private Hashtable GetMetadataFromNupkg(string packageName, string packagePath, s

List<string> pkgTags = new List<string>();
_cmdletPassedIn.WriteVerbose($"nuspecFilePath: {nuspecFilePath}");
// string path = tempDiscoveryPath;
// try {
// // Get the files in the directory
// string[] files = Directory.GetFiles(path);
// // Get the directories in the directory
// string[] directories = Directory.GetDirectories(path);
// // Output the files
// Console.WriteLine("Files:");
// foreach (string file in files)
// {
// Console.WriteLine(file);
// }
// // Output the directories
// Console.WriteLine("\nDirectories:");
// foreach (string directory in directories)
// {
// Console.WriteLine(directory);
// }
// } catch (Exception e)
// {
// Console.WriteLine("An error occurred: " + e.Message);
// }
string path = tempDiscoveryPath;
try {
// Get the files in the directory
string[] files = Directory.GetFiles(path);
// Get the directories in the directory
string[] directories = Directory.GetDirectories(path);
// Output the files
_cmdletPassedIn.WriteVerbose("Files:");
foreach (string file in files)
{
_cmdletPassedIn.WriteVerbose(file);
}
// Output the directories
_cmdletPassedIn.WriteVerbose("\nDirectories:");
foreach (string directory in directories)
{
_cmdletPassedIn.WriteVerbose(directory);
}
} catch (Exception e)
{
_cmdletPassedIn.WriteVerbose("An error occurred: " + e.Message);
}

if (File.Exists(psd1FilePath))
{
Expand Down

0 comments on commit 7da24e8

Please sign in to comment.