comparemd5sum: Compare the md5sum of files in folder 1 and folder2

Description Usage Arguments Value Examples

View source: R/readcomext.R

Description

Compare the md5sum of files in folder 1 and folder2

Usage

1
comparemd5sum(folder1, folder2)

Arguments

folder1

character path to a folder

folder2

character path to a folder

Value

a data frame containing file names and a md5equal column which is TRUE if md5sums are equal for the given file and FALSE otherwise.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# This example compares files in 2 folders downloaded at one month interval
# From the  [MOST_RECENT_COMEXT_DATA] folder in the Comext bulk data repository
# Note, since February 2018 the folder doesn't exist anymore on Comext
# use the pattern format(Sys.Date(),"\[%Y") instead
dtf <- comparemd5sum("/tmp/comext/201706/data","/tmp/comext/201707/data")
dtf$md5equal
# Comparing a folder with itself obvisouly returns TRUE
obviously <- comparemd5sum("/tmp/comext/201706/data","/tmp/comext/201706/data")
obviously$md5equal

## End(Not run)

stix-global/eutradeflows documentation built on Nov. 13, 2020, 9:23 p.m.