fileSize: Get Size of File(s)

Description Usage Arguments Value Author(s) Examples

View source: R/fileSize.R

Description

Function for getting size of any files.

Usage

1

Arguments

file

character vector of file(s) with path.

units

character, defaults to "B". Currently available options are "B", "KB", "MB", "GB" or "TB" for bites, kilo-, mega-, giga- and terabytes.

Value

numeric vector of the same length as file (in units). Note that directories are excluded.

Author(s)

Matteo Mattiuzzi

Examples

1
2
3
4
## Not run: 
fileSize(list.files("./"))

## End(Not run)

MODIS documentation built on Nov. 12, 2020, 5:06 p.m.