mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 07:26:51 +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'])
|
|
--
|