SolFSStorage.DeleteDirectory method

Filter:

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

SolFSStorage     See also    

Overview

Deletes a directory from SolFSStorage.

Declaration

[Pascal]
    procedure DeleteDirectory(Directory: TSolFSString);
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageDeleteDirectory(unsigned long Storage, const wchar_t* Directory);

[C++ (DLL/Lib)]
    void DeleteDirectory(unsigned short* Directory);

[C++ (VCL)]
    void __fastcall DeleteDirectory(TSolFSString Directory);

[C++ (.NET)]
    void DeleteDirectory(String* directory)

[C#]
    void DeleteDirectory(string directory)

[VB.NET]
    Sub DeleteDirectory(directory As String)

[Java]
    void deleteDirectory(String directory);

Parameters

  • Directory - the full name of the directory to be deleted.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.

Description

Use DeleteDirectory if you want to delete an existing directory from the SolFSStorage.
DeleteDirectory doesn't delete directories which are not empty.

See also

CreateDirectory     ForceCreateDirectories