Skip to main content

1E 23.7 (SaaS)

FileSystem.GetFileHash

Method

GetFileHash

Module

FileSystem

Library

Core

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

Notes

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