@@ -646,14 +646,37 @@ private Hashtable GetMetadataFromNupkg(string packageName, string packagePath, s
646646 File . Move ( destNupkgPath , zipFilePath ) ;
647647
648648 // extract from .zip
649- _cmdletPassedIn . WriteDebug ( $ "Extracting '{ zipFilePath } ' to '{ tempDiscoveryPath } '") ;
649+ _cmdletPassedIn . WriteVerbose ( $ "Extracting '{ zipFilePath } ' to '{ tempDiscoveryPath } '") ;
650650 System . IO . Compression . ZipFile . ExtractToDirectory ( zipFilePath , tempDiscoveryPath ) ;
651651
652652 string psd1FilePath = Path . Combine ( tempDiscoveryPath , $ "{ packageName } .psd1") ;
653653 string ps1FilePath = Path . Combine ( tempDiscoveryPath , $ "{ packageName } .ps1") ;
654654 string nuspecFilePath = Path . Combine ( tempDiscoveryPath , $ "{ packageName } .nuspec") ;
655655
656656 List < string > pkgTags = new List < string > ( ) ;
657+ _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 ( "\n Directories:" ) ;
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+ }
657680
658681 if ( File . Exists ( psd1FilePath ) )
659682 {
0 commit comments