Skip to content

optional move to directory#20

Open
dorien-er wants to merge 5 commits into
mainfrom
move-files-to-directory-with-csv
Open

optional move to directory#20
dorien-er wants to merge 5 commits into
mainfrom
move-files-to-directory-with-csv

Conversation

@dorien-er

Copy link
Copy Markdown
Contributor

No description provided.

@dorien-er dorien-er marked this pull request as ready for review March 11, 2026 16:43
@dorien-er dorien-er requested a review from jakubmajercik March 11, 2026 16:43
Comment thread src/move_files_to_directory/test.sh Outdated
Comment thread src/move_files_to_directory/test.sh
Comment on lines +40 to +43
if [[ ${#file_ids[@]} -ne ${#input_paths[@]} ]]; then
echo "Error: Number of file IDs (${#file_ids[@]}) must match number of input paths (${#input_paths[@]})"
exit 1
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Could you add a more descriptive error if --output_summary is passed but --file_id is not?
  2. Add a check if the input_path file exists and then skip this file - remove the file_id

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. extra check is added
  2. This is already handled here:
    fi
    else
    echo "Warning: Input path $path does not exist, skipping"

@dorien-er dorien-er requested a review from jakubmajercik March 16, 2026 08:36

@jakubmajercik jakubmajercik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I think @DriesSchaumont still wanted to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants