Learn R Programming

BBmisc (version 1.10)

isEmptyDirectory: Is one / are several directories empty?

Description

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

Usage

isEmptyDirectory(...)

Arguments

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

Value

[logical].

Examples

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

Run the code above in your browser using DataLab