From b60118f40a223c97c19572c5aa312a67c2b1a263 Mon Sep 17 00:00:00 2001 From: Tony Tkacik Date: Thu, 2 Jan 2020 16:33:21 +0100 Subject: [PATCH] vfs: Added nux.fs.stage to options Signed-off-by: Tony Tkacik --- bin/vfs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/vfs b/bin/vfs index 260fdf0..4bc5ce1 100755 --- a/bin/vfs +++ b/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]}" }