io.directories: fix mistaken refactor.
parent
c507293d41
commit
2f7e8c0352
|
@ -65,7 +65,7 @@ HOOK: move-file io-backend ( from to -- )
|
|||
to-directory move-file ;
|
||||
|
||||
: move-files-into ( files to -- )
|
||||
to-directory '[ _ move-file ] each ;
|
||||
'[ _ move-file-into ] each ;
|
||||
|
||||
! Copying files
|
||||
HOOK: copy-file io-backend ( from to -- )
|
||||
|
@ -82,7 +82,7 @@ M: object copy-file
|
|||
to-directory copy-file ;
|
||||
|
||||
: copy-files-into ( files to -- )
|
||||
to-directory '[ _ copy-file ] each ;
|
||||
'[ _ copy-file-into ] each ;
|
||||
|
||||
{
|
||||
{ [ os unix? ] [ "io.directories.unix" require ] }
|
||||
|
|
|
@ -44,4 +44,4 @@ DEFER: copy-trees-into
|
|||
to-directory copy-tree ;
|
||||
|
||||
: copy-trees-into ( files to -- )
|
||||
to-directory '[ _ copy-tree ] each ;
|
||||
'[ _ copy-tree-into ] each ;
|
||||
|
|
Loading…
Reference in New Issue