ipm icon indicating copy to clipboard operation
ipm copied to clipboard

Clean up "load from .tgz" process

Open isc-tleavitt opened this issue 1 year ago • 0 comments

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)

isc-tleavitt avatar Apr 30 '24 12:04 isc-tleavitt