update custom 'put' command section in doc
This commit is contained in:
parent
fed8d73ffe
commit
9092dc6369
17
doc.go
17
doc.go
@ -346,18 +346,19 @@ implementation. The default behavior is similar to the following command:
|
|||||||
mode=$(echo "$load" | sed -n '1p')
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
list=$(echo "$load" | sed '1d')
|
list=$(echo "$load" | sed '1d')
|
||||||
if [ $mode = 'copy' ]; then
|
if [ $mode = 'copy' ]; then
|
||||||
cp -r $list .
|
cp -R -n $list .
|
||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv $list .
|
mv -n $list .
|
||||||
fi
|
fi
|
||||||
|
lf -remote "send $id renew"
|
||||||
|
lf -remote "$(printf 'save\nmove\n\n')"
|
||||||
|
lf -remote "send sync"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
Some of the useful things you can do is to add some backup or overwrite options
|
Some useful things are to use the backup option ('--backup') with 'cp' and 'mv'
|
||||||
to 'cp' and 'mv' operations (e.g. '--backup' or '-n'), change the command type
|
commands if they support it (i.e. GNU implementation), change the command type
|
||||||
to asynchronous while also adding a remote 'renew' call at the end to update
|
to asynchronous, or use 'rsync' command with progress bar option for copying
|
||||||
the client afterwards, or use 'rsync' command with progress bar option for
|
and feed the progress to the client periodically with remote 'echo' calls.
|
||||||
copying and feed the progress to the client periodically with remote 'echo'
|
|
||||||
calls.
|
|
||||||
|
|
||||||
By default, lf does not provide an actual file deletion command to protect new
|
By default, lf does not provide an actual file deletion command to protect new
|
||||||
users. You can define such a command and optionally assign a key if you like.
|
users. You can define such a command and optionally assign a key if you like.
|
||||||
|
16
docstring.go
16
docstring.go
@ -360,17 +360,19 @@ implementation. The default behavior is similar to the following command:
|
|||||||
mode=$(echo "$load" | sed -n '1p')
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
list=$(echo "$load" | sed '1d')
|
list=$(echo "$load" | sed '1d')
|
||||||
if [ $mode = 'copy' ]; then
|
if [ $mode = 'copy' ]; then
|
||||||
cp -r $list .
|
cp -R -n $list .
|
||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv $list .
|
mv -n $list .
|
||||||
fi
|
fi
|
||||||
|
lf -remote "send $id renew"
|
||||||
|
lf -remote "$(printf 'save\nmove\n\n')"
|
||||||
|
lf -remote "send sync"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
Some of the useful things you can do is to add some backup or overwrite
|
Some useful things are to use the backup option ('--backup') with 'cp' and
|
||||||
options to 'cp' and 'mv' operations (e.g. '--backup' or '-n'), change the
|
'mv' commands if they support it (i.e. GNU implementation), change the
|
||||||
command type to asynchronous while also adding a remote 'renew' call at the
|
command type to asynchronous, or use 'rsync' command with progress bar
|
||||||
end to update the client afterwards, or use 'rsync' command with progress
|
option for copying and feed the progress to the client periodically with
|
||||||
bar option for copying and feed the progress to the client periodically with
|
|
||||||
remote 'echo' calls.
|
remote 'echo' calls.
|
||||||
|
|
||||||
By default, lf does not provide an actual file deletion command to protect
|
By default, lf does not provide an actual file deletion command to protect
|
||||||
|
Loading…
Reference in New Issue
Block a user