Sha256: 3638b7818365c858be32c2a81d04dfc9201661d1b299aab4a8765fcc9f086a2b

Contents?: true

Size: 554 Bytes

Versions: 29

Compression:

Stored size: 554 Bytes

Contents

$p = $ExecutionContext.SessionState.Path
$path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>")
$index = <%= index %>
$chunkSize = <%= chunk_size %>
if (Test-Path $path -PathType Leaf) {
  $file = [System.IO.File]::OpenRead($path)
  $seekedTo = $file.Seek($index, [System.IO.SeekOrigin]::Begin)
  $chunk = New-Object byte[] $chunkSize
  $bytesRead = $file.Read($chunk, 0, $chunkSize)
  $bytes = [System.convert]::ToBase64String($chunk[0..$bytesRead])
  Write-Host $bytes
  exit 0
}
ElseIf (Test-Path $path -PathType Container) {
  exit 2
}
exit 1

Version data entries

29 entries across 21 versions & 2 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.5/lib/winrm-fs/scripts/download.ps1.erb
winrm-fs-1.3.5 lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/winrm-fs-1.3.3/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.4/lib/winrm-fs/scripts/download.ps1.erb
winrm-fs-1.3.4 lib/winrm-fs/scripts/download.ps1.erb
winrm-fs-1.3.3 lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/winrm-fs-1.3.1/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/winrm-fs-1.3.2/lib/winrm-fs/scripts/download.ps1.erb