io.directories vocabulary
Factor handbook ยป Vocabulary index


Documentation
Directory manipulation

Metadata
Authors:Slava Pestov, Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
directory-entry tuplename type
sequence-expected tupleobj


Generic words
WordStack effect
(directory-entries)( path -- seq )
copy-file( from to -- )
delete-directory( path -- )
delete-file( path -- )
make-directory( path -- )
move-file( from to -- )
move-file-atomically( from to -- )
touch-file( path -- )
truncate-file( path n -- )


Symbol words
+breadth-first+
+depth-first+
traversal-method


Ordinary words
WordStack effect
(find-up-to-root)( path quot: ( path -- ? ) -- obj )
<directory-entry>( name type -- directory-entry )
?delete-file( path -- )
?delete-tree( path -- )
?move-file( from to -- )
?parent-directory( path -- path'/f )
?qualified-directory-files( path -- seq )
containing-directory( path -- path' )
copy-file-into( from to -- )
copy-files-into( files to -- )
copy-tree( from to -- )
copy-tree-into( from to -- )
copy-trees-into( files to -- )
create-parent-directory( path -- )
delete-tree( path -- )
directory-entries( path -- seq )
directory-files( path -- seq )
directory-size( path -- n )
directory-usage( path -- assoc )
each-directory-entry( path quot: ( ... entry -- ... ) -- )
each-file( ... path quot: ( ... name -- ... ) -- ... )
ensure-sequence-of-directories( obj -- seq )
find-file( path quot: ( ... name -- ... ? ) -- path/f )
find-file-in-directories( directories quot: ( ... name -- ... ? ) -- path'/f )
find-files( path quot: ( ... name -- ... ? ) -- paths )
find-files-by-extension( path extension -- seq )
find-files-by-extensions( path extensions -- seq )
find-files-in-directories( directories quot: ( ... name -- ... ? ) -- paths/f )
find-files-larger-than( path size -- seq )
find-up-to-root( path quot: ( path -- ? ) -- obj )
link-size/0( path -- n )
make-directories( path -- )
make-parent-directories( filename -- filename )
move-file-into( from to -- )
move-files-into( files to -- )
qualified-directory-entries( path -- seq )
qualified-directory-files( path -- seq )
recursive-directory-entries( path -- directory-entries )
recursive-directory-files( path -- paths )
sequence-expected( obj -- * )
set-current-directory( path -- )
to-directory( from to -- from to' )
with-directory( path quot -- )
with-directory-entries( path quot -- )
with-directory-files( path quot -- )
with-ensure-directory( path quot -- )
with-resource-directory( quot -- )


Class predicate words
WordStack effect
directory-entry?( object -- ? )
sequence-expected?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
io.directories.unix
io.directories.windows


Children
VocabularySummary
io.directories.private