assert_all_are_empty_files(x)
assert_any_are_empty_files(x)
is_empty_file(x)
is_empty_file
wraps file.info
, retuning TRUE
when the input is a file that exists with size zero.
assert_*_are_empty_files
return nothing but throws an error if
is_empty_file
returns FALSE
.file.info
.tf <- tempfile()
file.create(tf)
is_empty_file(tf)
unlink(tf)
Run the code above in your browser using DataLab