Contents

Method

GetFileHash

ModuleFileSystem
LibraryCore
Action

Returns the hash of a file.

Parameters

FilePath (string): The full path of the file.

Algorithm (string): Which algorithm to use to perform the hashing. Possible values: 

    • SHA1
    • SHA256
    • MD5
Return values

SizeBytes (int): The size of the file

Hash (string): The hash of the file

Example
 FileSystem.GetFileHash(FilePath:"c:\\tmp\\ips.txt", Algorithm:"MD5");
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
Notes

Returns SuccessNoContent if a directory is supplied as the FilePath parameter.