MODIS (version 1.1.7)

fileSize: Get Size of File(s)

Description

Function for getting size of any files.

Usage

fileSize(file, units = "B")

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.

Examples

Run this code
# NOT RUN {
fileSize(list.files("./"))
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace