Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backward slash issue in user .csv lookup #1707

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def convert_userdata_csv_to_json(user_data_path, project_path)
# Read all valid files in user_data_folder and load into json array
unless user_data_path == ''
user_data_validation_outcome = true
Dir.glob("#{user_data_path}/*.csv").each do |csv_full_name|
Dir.glob("#{user_data_path.gsub('\\', '/')}/*.csv").each do |csv_full_name|
csv_file_name = File.basename(csv_full_name, File.extname(csv_full_name))
if json_objs.key?(csv_file_name)
# Load csv file into array of hashes
Expand Down