protected override void BeginProcessing() { base.BeginProcessing(); RegisterInputType <ArchiveEntry>(ProcessArchive); RegisterInputType <FileInfo>(ProcessArchive); // if OutputPath is not provided, use current filesystem path. if (OutputPath == null) { OutputPath = PscxPathInfo.FromPathInfo(this.CurrentProviderLocation(FileSystemProvider.ProviderName)); // todo: localize WriteVerbose("Using FileSystemProvider current location for OutputPath: " + OutputPath); } string sevenZDll = PscxContext.Instance.Is64BitProcess ? "7z64.dll" : "7z.dll"; string sevenZPath = System.IO.Path.Combine(PscxContext.Instance.Home, sevenZDll); if (SevenZipBase.CurrentLibraryFeatures == LibraryFeature.None) { Trace.Assert(File.Exists(sevenZPath), sevenZPath + " not found or inaccessible."); SevenZipBase.SetLibraryPath(sevenZPath); // can only call this once per appdomain } WriteDebug("7zip path: " + sevenZPath); WriteDebug("7zip features: " + SevenZipBase.CurrentLibraryFeatures); }
protected override void BeginProcessing() { base.BeginProcessing(); RegisterInputType <ArchiveEntry>(ProcessArchive); RegisterInputType <FileInfo>(ProcessArchive); // if OutputPath is not provided, use current filesystem path. if (OutputPath == null) { OutputPath = PscxPathInfo.FromPathInfo( this.CurrentProviderLocation(FileSystemProvider.ProviderName)); // todo: localize WriteVerbose("Using FileSystemProvider current location for OutputPath: " + OutputPath); } }