 					local file=$(get_full_path_file "$fullpath")
 					local linesToDelete=$(remove_file "$path" "$file" "$archive")
 					if [[ $linesToDelete -ne false ]]; then
-						sed -i "$(remove_file "$path" "$file" "$archive")d" "archives/$archive.arch"
+						sed -i "$linesToDelete"d "archives/$archive.arch"
 						update_markers "1" "$archive"
 						echo "File $file removed."
 					else

	local body=$(head -n 1 "$ARCHIVE"/"$2".arch)
	local -i start=$(cut -d':' -f1 <<< "$body")
	local -i end=$(($(cut -d':' -f2 <<< "$body")-1))
	if [[ -z $(sed -n ${start},${end}p "$ARCHIVE"/"$2".arch | grep "^directory $1$") ]]; then
		echo false
	else echo true
	fi

					if ! [[ -z $base ]]; then
						ROOT=$(get_root_path "$archive")
						local path=$(get_full_path "$target" "$current" "$archive" | sed 's/'"$base"'//')
						path=$(remove_last_slash "$path")
						if [[ $path == '1' ]]; then
							echo "Wrong path: too many double dots!"
						elif [[ "$(check_dir_path $path $archive)" == true ]]; then
							local lines="$(get_file_lines $path $base $archive)"
							local -i code=$?
							if [[ $(cut -d' ' -f4 <<< "$lines") -eq 2 ]]; then
								echo 'File empty'
							elif [[ $lines == false ]]; then
								echo "File $base not found."
							elif [[ $code -eq 0 ]]; then
								local start_line=$(cut -d' ' -f1 <<< "$lines")
								local end_line=$(cut -d' ' -f2 <<< "$lines")
								local text=$(sed -n ${start_line},${end_line}p "$ARCHIVE"/"$archive".arch)
								echo "$text"
							fi
						fi
					else echo "$target: Not a directory"
