fileSize: Get Size of File(s)

View source: R/fileSize.R

fileSizeR Documentation

Get Size of File(s)

Description

Get the size of any file.

Usage

fileSize(file, units = c("B", "KB", "MB", "GB", "TB"))

Arguments

file

character vector of file(s) with path.

units

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

Value

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

Author(s)

Matteo Mattiuzzi

Examples

## Not run: 
fileSize(list.files("./"))

## End(Not run)


MODIS documentation built on Jan. 6, 2023, 5:10 p.m.