Learn R Programming

BBmisc (version 1.13)

isEmptyDirectory: Is one / are several directories empty?

Description

If file does not exist or is not a directory, FALSE is returned.

Usage

isEmptyDirectory(...)

Value

[logical].

Arguments

...

[character(1)]
Directory names, all strings.

Examples

Run this code
print(isEmptyDirectory(tempdir()))
print(isEmptyDirectory(tempfile()))

Run the code above in your browser using DataLab