Skip to content

format

typescript
Directory.IsEmpty(path)

class: Directory

description

Determines whether the specified path is empty.

Since this is a class for manipulating directories, passing a file name will return false.

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
booleanTrue if the path is empty; otherwise, false.

code example