Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Rebol Programming/delete-dir

From Wikibooks, open books for an open world
<Rebol Programming
This page may need to bereviewed for quality.

USAGE:

[edit |edit source]
DELETE-DIR dir

DESCRIPTION:

[edit |edit source]

Deletes a directory including all files and subdirectories.

DELETE-DIR is a function value.

ARGUMENTS

[edit |edit source]
  • dir -- (Type: file url)

SOURCE CODE

[edit |edit source]
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]]
Retrieved from "https://en.wikibooks.org/w/index.php?title=Rebol_Programming/delete-dir&oldid=3352698"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp