Skip to content

Failing to copy over mulitple folders inside of PSModule #7

@montereyharris

Description

@montereyharris

If there are multiple folders it seems that it fails to copy over with this error

writeErrorStream : True
PSMessageDetails :
Exception : System.Management.Automation.PSArgumentException: Container cannot be copied onto existing
leaf item.
TargetObject : C:\Users\mharris\AppData\Local\Temp\omsagent-master\views
CategoryInfo : InvalidArgument: (C:\Users\mharri...nt-master\views:String) [Copy-Item], PSArgumentException
FullyQualifiedErrorId : CopyContainerItemToLeafError,Microsoft.PowerShell.Commands.CopyItemCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Install-ModuleFromGitHub, C:\Program
Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.1\InstallModuleFromGitHub.psm1: line
70
PipelineIterationInfo : {0, 1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions