1
1
Fork 0
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:
Tony Tkáčik 2020-01-02 16:33:21 +01:00
parent 7ed7cc48ed
commit b60118f40a

View file

@ -76,9 +76,9 @@ function vfs.path.real file {
nux.log trace "Real file: $real_file"; nux.log trace "Real file: $real_file";
nux.log trace "Target dir: $target_dir"; nux.log trace "Target dir: $target_dir";
if [ -n "$real_file" ]; then 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" 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 else
fs:error $arg_path does not exists. fs:error $arg_path does not exists.
fi fi
@ -115,6 +115,6 @@ function vfs.path.real file {
@command :unmount target { @command :unmount target {
fusermount -u "$target" fusermount -u "$target"
fs:info "${CURRENT_SOURCES[temp]}" removing temporary metadata. fs:info "${CURRENT_SOURCES[temp]}" removing temporary metadata.
rm -rf "${CURRENT_SOURCES[temp]}" fs:stage rm -rf "${CURRENT_SOURCES[temp]}"
} }