1 USING: help.markup help.syntax ;
2 IN: io.directories.hierarchy
5 { $values { "path" "a pathname string" } }
6 { $description "Deletes a file or directory, recursing into subdirectories." }
7 { $errors "Throws an error if the deletion fails." }
8 { $warning "Misuse of this word can lead to catastrophic data loss." } ;
11 { $values { "from" "a pathname string" } { "to" "a pathname string" } }
12 { $description "Copies a directory tree recursively." }
13 { $notes "This operation attempts to preserve original file attributes, however not all attributes may be preserved." }
14 { $errors "Throws an error if the copy operation fails." } ;
17 { $values { "from" "a pathname string" } { "to" "a directory pathname string" } }
18 { $description "Copies a directory tree to another directory, recursively." }
19 { $errors "Throws an error if the copy operation fails." } ;
22 { $values { "files" "a sequence of pathname strings" } { "to" "a directory pathname string" } }
23 { $description "Copies a set of directory trees to another directory, recursively." }
24 { $errors "Throws an error if the copy operation fails." } ;
26 ARTICLE: "io.directories.hierarchy" "Directory hierarchy manipulation"
27 "The " { $vocab-link "io.directories.hierarchy" } " vocabulary defines words for operating on directory hierarchies recursively."
29 "Deleting directory trees recursively:"
30 { $subsection delete-tree }
31 "Copying directory trees recursively:"
32 { $subsection copy-tree }
33 { $subsection copy-tree-into }
34 { $subsection copy-trees-into } ;
36 ABOUT: "io.directories.hierarchy"