SolFSStorage.IsDirectoryEmpty method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Tells whether the directory is empty.


    function IsDirectoryEmpty(const Directory: TSolFSString): boolean;

[Plain C]
    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 TSolFSString Directory);

[C++ (.NET)]
    bool IsDirectoryEmpty(String* directory)

    bool IsDirectoryEmpty(string directory)

    Function IsDirectoryEmpty(string directory) As Boolean

    boolean isDirectoryEmpty(String directory)


  • Directory - the full directory name in the SolFSStorage.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] Empty - The return value of the function.

Return value

    True if the directory is empty and False otherwise.

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.


Use IsDirectoryEmpty function to determine, whether the directory has any files inside. This function is faster than using FindFirst/FindClose.

See also