is_tarfile: Check if file is tar archived or not.

View source: R/r_utils.R

is_tarfileR Documentation

Check if file is tar archived or not.

Description

Check the magic bytes at offset 257. If they match "ustar" including the null terminator, the file is probably a tar. https://www.gnu.org/software/tar/manual/html_node/Standard.html

Usage

is_tarfile(path)

Arguments

path

A character of filepath to tar archived file.

See Also

Other r_utils: Enum(), IsSubR6Class(), cls_help(), format_class(), is_list_named(), islistempty(), pkg_method(), retry_api_call(), rsplit(), split_str(), write_bin()


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.