-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
Steps to reproduce
C:\PS> Get-Date > Date.tmp
C:\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIfExpected behavior
What if: Performing the operation "Create new file catalog" on target "C:\PS\catalog.cat".Actual behavior
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 12/9/2016 12:37 PM 433 catalog.catYou can see the file has been created.
The Hash is also being calculated too.
C:\PS> Test-FileCatalog -Detailed -CatalogFilePath catalog.cat
Status : Valid
HashAlgorithm : SHA256
CatalogItems : {[Date.tmp, 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459]}
PathItems : {[Date.tmp, 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459]}
Signature : System.Management.Automation.Signature
C:\PS> Get-FileHash -Path Date.tmp
Algorithm : SHA256
Hash : 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459
Path : C:\Temp\Demo\Date.tmp
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.206
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.206
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues