1 USING: help io styles ;
4 { $values { "path" "a path name string" } }
5 { $description "Outputs the current working directory of the Factor process." }
9 { $values { "path" "a path name string" } }
10 { $description "Changes the current working directory of the Factor process." }
13 HELP: stat ( path -- directory? length permissions modified )
14 { $values { "path" "a path name string" } { "directory?" "boolean indicating if the file is a directory" } { "length" "the length in bytes as an integer" } { "permissions" "a Unix permission bitmap (0 on Windows" } { "modified" "the last modification time, as milliseconds since midnight, January 1st 1970 GMT" } }
16 "Queries the file system for file meta data. If the file does not exist, outputs " { $link f } " for all four values."
18 { $see-also exists? directory? file-length file-modified } ;
21 { $values { "str1" "a string" } { "str2" "a string" } { "str" "a string" } }
22 { $description "Concatenates two path names." } ;
25 { $values { "path" "a string" } { "?" "a boolean" } }
26 { $description "Tests if the file named by " { $snippet "path" } " exists." } ;
29 { $values { "path" "a string" } { "?" "a boolean" } }
30 { $description "Tests if " { $snippet "path" } " names a directory." } ;
33 { $values { "path" "a string" } { "seq" "a sequence of file name strings" } }
34 { $description "Outputs a sorted sequence of file names stored in the directory named by " { $snippet "path" } "." } ;
37 { $values { "path" "a string" } { "n" "a non-negative integer or " { $link f } } }
38 { $description "Outputs the length of the file in bytes, or " { $link f } " if it does not exist." } ;
41 { $values { "path" "a string" } { "parent" "a string" } }
42 { $description "Strips the last component off a path name." }
43 { $examples { $example "\"/etc/passwd\" parent-dir print" "/etc" } } ;
46 { $values { "resource" "a string" } { "path" "a string" } }
47 { $description "Resolve a path relative to the Factor source code location. This first checks if the " { $link resource-path } " variable is set to a path, and if not, uses the parent directory of the current image." } ;
50 { $class-description "Class of path name presentations. Instances can be used passed to " { $link write-object } " to output a clickable path name." } ;