wwUtils.DeleteTree

Deletes files based on a path and file spec, recursively down the folder hiearchy. Optionally also allows removal of empty folders effectively deleting entire folder hiearchy.

o.wwUtils.DeleteTree(lcSourcePath, lcFileSpec, llDontRemoveEmptyFolders)

Return Value

.T. or .F.

Parameters

lcSourcePath
The source path from which the recursive delete starts

lcFileSpec
A file spec of files to delete. Examples:

  • *.tmp
  • *.*
  • Changes.?.*

llDontRemoveEmptyFolders
By default empty folders are removed. If this value is .T. empty folders are left in place.


See also:

Class wwUtils

© West Wind Technologies, 2023 • Updated: 02/02/22
Comment or report problem with topic