hash_directory: Create hash file of input directory and save to file in...

View source: R/hash_directory.R

hash_directoryR Documentation

Create hash file of input directory and save to file in output directory

Description

This function is calculating the file hash for each subdirectory and file and storing it in a files.sha256 file and finally calculates the directory hash for this file and saves it in the file dir.sh256. It is calculating one checksum file for the whole dataset as well which is stored in the ToBeImported directory.

Usage

hash_directory(input, hashfile = file.path(input, "file.hash"))

Arguments

input

dircetory of which the hashes should be calculated

hashfile

File name of the hash file. Defaults to file.sha256 in the input directory

Value

invisibly TRUE

Examples

## Not run: 
hash_directory(
  input = "./input",
  hashfile = file.path(input, "file.hash")
)

## End(Not run)

LEEF-UZH/LEEF.archive.default documentation built on Jan. 15, 2024, 1:31 a.m.