File! values represent file names or directory names and paths.
File! is a member of the following typesets: any-string!, series!
File values can be created using literal syntax, or at runtime by using a make constructor or to conversion.
>> %file-literal
== %file-literal>> make file! 'foo
== %foo
>> make file! "bar"
== %bar
>> make file! [a long file name]
== %alongfilename>> to file! "foo"
== %foo
>> to file! [foo bar baz]
== %foobarbazA percent sign % followed by one or more non whitespace characters, or by zero or more characters enclosed in " ".
Whitespace characters must be escaped with %<hex> values unless enclosed in " ".
%foo
%foo%20bar
%"foo bar baz"
All comparators can be applied on file!: =, ==, <>, >, <, >=, <=, =?. In addition, min, and max are also supported.
Use file? to check if a value is of the file! datatype.
>> file? %foo
== trueUse type? to return the datatype of a given value.
>> type? %bar
== file!cd, change-dir, clean-path, dir?, dirize, do-file, do-thru, exists-thru?, file?, flip-exe-flag, list-dir, load, load-thru, make-dir, normalize-dir, path-thru, read-thru, request-dir, request-file, save, split-path, suffix?, to-file, to-red-file