Skip to content

Commit

Permalink
recreate directory if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
stkenny committed Feb 6, 2025
1 parent 502cdf8 commit 9eb220a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/process_batch_ingest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.perform(user_id, collection_id, ingest_json)
user = UserGroup::User.find(user_id)

download_path = File.join(Settings.downloads.directory, collection_id)
FileUtils.mkdir_p(download_path)
FileUtils.mkdir_p(download_path, force: true)

# retrieve information about metadata file to be ingested
metadata_info = ingest_batch['metadata']
Expand Down

0 comments on commit 9eb220a

Please sign in to comment.