mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
vfs: Added nux.fs.stage to options
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
7ed7cc48ed
commit
b60118f40a
1 changed files with 3 additions and 3 deletions
6
bin/vfs
6
bin/vfs
|
|
@ -76,9 +76,9 @@ function vfs.path.real file {
|
|||
nux.log trace "Real file: $real_file";
|
||||
nux.log trace "Target dir: $target_dir";
|
||||
if [ -n "$real_file" ]; then
|
||||
mkdir -p "$target_dir";
|
||||
fs:stage mkdir -p "$target_dir";
|
||||
fs:info "$arg_path" moving from "$NC_LightPurple${real_file}$NC_No" to "$NC_LightPurple$target_dir"
|
||||
mv "$real_file" "$target_dir";
|
||||
fs:stage mv "$real_file" "$target_dir";
|
||||
else
|
||||
fs:error $arg_path does not exists.
|
||||
fi
|
||||
|
|
@ -115,6 +115,6 @@ function vfs.path.real file {
|
|||
@command :unmount target {
|
||||
fusermount -u "$target"
|
||||
fs:info "${CURRENT_SOURCES[temp]}" removing temporary metadata.
|
||||
rm -rf "${CURRENT_SOURCES[temp]}"
|
||||
fs:stage rm -rf "${CURRENT_SOURCES[temp]}"
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue