/**
 * Get the MD5 hash of the file at the given path.
 *
 * @return string Returns a string on success, FALSE otherwise.
 */
public function hash(): string

Examples

$result = $filesystem->file('/foo/1.txt')->hash();

echo $result;

The above example will output:

098f6bcd4621d373cade4e832627b4f6

Getting Started

Methods

Filesystem
File
Directory