Gets the size of a file

Share:

Description

Gets the size of a file.

Usage

1
2
## S3 method for class 'GenericDataFile'
getFileSize(this, what=c("numeric", "units"), sep="", ...)

Arguments

what

A character string specifying the data type returned. If "numeric", then a numeric value is returned. If "units", then a human-readable character string is returned.

sep

A character string.

...

Not used.

Value

Returns a numeric or a character string. A missing value (NA) is returned if the file does not exist.

Author(s)

Henrik Bengtsson

See Also

file.info(). For more information see GenericDataFile.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.