@@ -5579,10 +5579,10 @@ function proceed_next_level() {
55795579# Both the source path and target path arguments are interpreted as relative to the
55805580# project target directory.
55815581#
5582- # When in the regular (form-based) application mode, the project target directory must
5583- # have already been created by means of the project_init_copy() function before a file
5582+ # When in regular (form-based) application mode, the project target directory must have
5583+ # already been created by means of the project_init_copy() function before a file
55845584# can be moved.
5585- #
5585+ #
55865586# When in Quickstart mode, the project target directory is the underlying Quickstart
55875587# current working directory, i.e. where the Quickstart was initiated. If a file at
55885588# the specified destination already exists, it is not overwritten and this function
@@ -5593,12 +5593,13 @@ function proceed_next_level() {
55935593#
55945594# Args:
55955595# $1 - The relative path of the source file to move in the project target directory.
5596- # This is a mandatory argument.
5596+ # The source path must not be absolute. This is a mandatory argument.
55975597# $2 - The relative path to the target file where to move the source file to
5598- # in the project target directory. This is a mandatory argument.
5598+ # in the project target directory. The target path must not be absolute.
5599+ # This is a mandatory argument.
55995600#
56005601# Examples:
5601- # move_file "the_src_file .txt" "subdirA/subdirB/trgt_file.txt";
5602+ # move_file "a_src_file .txt" "subdirA/subdirB/trgt_file.txt";
56025603#
56035604function move_file() {
56045605 local arg_source=" $1 " ;
@@ -5662,7 +5663,7 @@ function move_file() {
56625663 target_file=" ${var_project_dir} /${arg_target} " ;
56635664 fi
56645665
5665- mv " $source_file " " $target_file " 2> /dev/null;
5666+ mv " ${ source_file} " " ${ target_file} " 2> /dev/null;
56665667 local mv_stat=$? ;
56675668 if (( mv_stat != 0 )) ; then
56685669 logE " Failed to move file inside project directory" ;
@@ -5672,7 +5673,6 @@ function move_file() {
56725673 _cancel_quickstart $EXIT_FAILURE ;
56735674 failure " Failed to move source files" ;
56745675 fi
5675- # Update file cache
56765676 find_all_files;
56775677 return 0;
56785678}
0 commit comments