Skip to content

Clean up "load from .tgz" process #474

@isc-tleavitt

Description

@isc-tleavitt

In %IPM.Main:Load:

	} ElseIf ##class(%File).Exists(tDirectoryName),$$$lcase($Piece(tDirectoryName, ".", *)) = "tgz" {
		Set tTargetDirectory = $$$FileTempDirSys
		Set tSC = ##class(%IPM.General.Archive).Extract(tDirectoryName, tTargetDirectory)
		$$$ThrowOnError(##class(%IPM.Utils.Module).LoadNewModule(tTargetDirectory, .tParams))
	}

This should:

  • Support .tar.gz as well
  • Specifically cover the case of a download of a GitHub release - so there's a nested directory too to account for
  • Check the status from Extract ($$$ThrowOnError)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions