This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/go-cmd/cmd" | |
"github.com/theengineeringco/flow/pkg/utils" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
from dirhash import dirhash | |
from pathlib import Path | |
from typing import cast, Union | |
CHUNKSIZE = 128 * 1024 | |
def hash_file(file_path: Union[Path, str]) -> str: | |
# From https://stackoverflow.com/a/44873382 |