Skip to content

Commit

Permalink
Triclops initializer now creates temp directory if it does not alread…
Browse files Browse the repository at this point in the history
…y exist
  • Loading branch information
elohanlon committed Jan 6, 2025
1 parent 5042704 commit 4152948
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/triclops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def validate_triclops_config!
# If temp_directory is not set, default to ruby temp dir
TRICLOPS[:tmp_directory] = Dir.tmpdir if TRICLOPS[:tmp_directory].nil?

# Make temp_directory if it does not already exist
FileUtils.mkdir_p(TRICLOPS[:tmp_directory])

# Set the TMPDIR ENV variable so that Vips (via Imogen) writes temp files here.
# This defaults to the OS temp directory if not otherwise set, which can be a
# problem if we're on a host that has limited local disk space.
Expand Down

0 comments on commit 4152948

Please sign in to comment.