DirectoryIsEmpty Method (String) |
[AlphaFS] Determines whether the given directory is empty; i.e. it contains no files and no subdirectories.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static bool IsEmpty(
string directoryPath
)
Public Shared Function IsEmpty (
directoryPath As String
) As Boolean
public:
static bool IsEmpty(
String^ directoryPath
)
static member IsEmpty :
directoryPath : string -> bool
Parameters
- directoryPath
- Type: SystemString
The path to the directory.
Return Value
Type:
BooleanReturns when the directory contains no file system objects.
Returns when directory contains at least one file system object.
See Also