System.IOUtils.TDirectory.IsEmpty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function IsEmpty(const Path: string): Boolean; static;

C++

static bool __fastcall IsEmpty(const System::UnicodeString Path);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Checks whether a given directory is empty.

Call IsEmpty to check whether a given directory is empty. An empty directory is considered to have no files or other directories in it. IsEmpty returns true if the directory is empty; false otherwise. The following table lists the parameters expected by this method.



Name Meaning

Path

Path of the directory being checked.



Note: If the Path parameter is an empty string, IsEmpty returns false.

See Also

Code Examples