SolFSStorage.IsDirectoryEmpty method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Tells whether the directory is empty.
Declaration
[Pascal]
function IsDirectoryEmpty(const Directory: WideString): boolean;
[DLL]
long _stdcall StorageIsDirectoryEmpty(unsigned long Storage, const wchar_t* Directory, bool *Empty);
[C++ (DLL/Lib)]
bool IsDirectoryEmpty(const unsigned short * Directory);
[C++ (VCL)]
bool __fastcall IsDirectoryEmpty(const WideString Directory);
[C++ (.NET)]
bool IsDirectoryEmpty(String* directory)
[C#]
bool IsDirectoryEmpty(string directory)
[VB.NET]
Function IsDirectoryEmpty(string directory) As Boolean
Parameters
- Directory - the full directory name in the SolFSStorage.
Return value
True if the directory is empty and False otherwise.
[DLL] 0 if the function succeeded or one of Error codes if the function failed.
Description
Use IsDirectoryEmpty function to determine, whether the directory has any files inside. This function is faster than using FindFirst/FindClose.
