403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/ProgramData/chocolatey/extensions/chocolatey-compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/ProgramData/chocolatey/extensions/chocolatey-compatibility//chocolatey-compatibility.psm1
# Export functions that start with capital letter, and located in helpers directory.
# Other files are considered private, and should not be imported.
$ScriptRoot = Split-Path $MyInvocation.MyCommand.Definition

# The functions available in Chocolatey is not available in a variable
# we need to skip the import of a function if it already exist, as such
# we need to check the file system directly.
$ChocolateyScriptPath = Resolve-Path "$env:ChocolateyInstall\helpers\functions"

$existingMembers = Get-ChildItem $ChocolateyScriptPath | ForEach-Object BaseName

Get-ChildItem "$ScriptRoot\helpers\*.ps1" | `
  Where-Object { $_.Name -cmatch "^[A-Z]+" } | `
  ForEach-Object {
  $name = $_.BaseName

  if ($existingMembers -notcontains $name) {
    Write-Debug "Exporting function '$name' for backwards compatibility"
    . $_
    Export-ModuleMember -Function $name
  }
  else {
    Write-Debug "Function '$name' exists, ignoring export."
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit