EldoS
 Table of Contents >  SolFSStorage.IsDirectoryEmpty method
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

SolFSStorage.IsDirectoryEmpty method

Filter:

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

SolFSStorage     See also    

Overview

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.
  • [DLL] Storage - handle to the storage returned by Create or Open function.
  • [DLL] Empty - The return value of the function.

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.

See also

FindFirst

Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation