You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
If you try and expand an archive which contains files that have long paths in it Expand-Archive will raise errors and not properly expand the contents.
New-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:984 char:25
+ ... New-Item $currentArchiveEntryFileInfo.DirectoryName -Type ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\tmp\node-v8....les\is-arrayish:String) [New-Item], PathTooLongException
+ FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.NewItemCommand
It would appear to be this line that causes the problem, so it's related to how New-Item handles long paths.
psd1
@{
GUID="eb74e8da-9ae2-482a-a648-e96550fb8733"Author="Microsoft Corporation"CompanyName="Microsoft Corporation"Copyright="� Microsoft Corporation. All rights reserved."ModuleVersion="1.0.1.0"FunctionsToExport=@('Compress-Archive','Expand-Archive')
DotNetFrameworkVersion=4.5CmdletsToExport=@()
AliasesToExport=@()
NestedModules="Microsoft.PowerShell.Archive.psm1"HelpInfoURI='https://go.microsoft.com/fwlink/?LinkId=393254'
}
Environment
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.16299 N/A Build 16299
System Model: Surface Pro 4
System Type: x64-based PC
The text was updated successfully, but these errors were encountered:
If you try and expand an archive which contains files that have long paths in it
Expand-Archive
will raise errors and not properly expand the contents.Repo script
Error message is:
It would appear to be this line that causes the problem, so it's related to how
New-Item
handles long paths.psd1
Environment
The text was updated successfully, but these errors were encountered: