HB_DirUnbuild
Attempt to remove a directory
Syntax
HB_DirUnbuild( <cDir> ) -> <lSuccess>
Argument
<cDir> : The name of the directory to delete
Returns
<lSuccess> : A logical value denotes either <cDir> removed or not
Description
This function attempt to remove the specified directory <cDir> and return .T. if deletion is successfull, else .F.
Note
<cDir> must be empty HB_DirUnbuild() look like a synonym of DirRemove() and HB_DirDelete(); difference is in return value.
Example
PROC TstDirUnbld() LOCAL cDir := 'C:\temp\TstUnB' ? 'Is', CDir, 'exists ? ', HB_DirExists( cDir ) // .T. ? 'Is', CDir, 'UnBuilded ? ', HB_DirUnbuild( cDir ) // .F. (*) ? 'Is', CDir, 'exists now ?', HB_DirExists( cDir ) // .F. RETU // TstDirUnbld() (*) observed that <cDir> not found after operation
Seealso