Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/delete-dir

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: DELETE-DIR dir DESCRIPTION: Deletes a directory including all files and subdirectories. DELETE-DIR is a function value. ARGUMENTS dir -- (Type: file url) SOURCE CODE delete-dir: func [ {Deletes a directory including all files and subdirectories.} dir [file! url!] /local files ][ if all [ dir? dir dir: dirize dir attempt [files: load dir] ] [ foreach file files [delete-dir dir/:file] ] attempt [delete dir] ]