makeFileSize: LidarIndexR - Utility function to convert file size string to...

View source: R/LidarIndexR.R

makeFileSizeR Documentation

LidarIndexR – Utility function to convert file size string to actual file size.

Description

This is a helper function used in the LidarIndexR package to help read file sizes from http or https directory listings. It looks for a trailing character to determine the multipliuer for the numeric portion of the size value. In the case of directories, the sizeString will be "-". This value is explicitly recognized.

Usage

makeFileSize(sizeString)

Arguments

sizeString

A string containing the file size or "-" for directories.

Value

A (invisible) double value for files and a string for directories.


bmcgaughey1/LidarIndexR documentation built on April 14, 2025, 6:07 p.m.