mirror of
https://github.com/urbit/shrub.git
synced 2024-12-16 06:51:14 +03:00
18 lines
323 B
Plaintext
18 lines
323 B
Plaintext
:: MoVe file from one location to another
|
|
::
|
|
:::: /hook/core/mv/app
|
|
::
|
|
/+ sh-utils
|
|
!:
|
|
::::
|
|
::
|
|
|_ [hid=hide ~]
|
|
++ peer ,_`.
|
|
++ poke--args
|
|
%+ gate-bang
|
|
|= [input=path output=path ~]
|
|
:^ %c %info our.hid
|
|
(furl (foal output .^(%cx input)) (fray input))
|
|
(args-into-gate . ,_[%txt 'moved'])
|
|
--
|