legend-exp / LegendDataManagement.jl

LegendMetadata access in Julia
Other
1 stars 5 forks source link

Add functionality for atomic file creation via unix rename #21

Closed oschulz closed 5 months ago

theHenks commented 6 months ago

I think this is good to have to replace this functionality which is currently done manually in the julia-data-flow. Here, I usually do the following:

@debug "Create DSP folder"
  dsp_folder = l200.tier[:dsp, :cal, period, run]
  if isdir(dsp_folder)
      @debug("DSP folder $dsp_folder already exists")
  else
      mkpath(dsp_folder)
  end

  @debug "Create logs folder"
  log_folder = joinpath(l200.tier[:log, :cal, period, run])
  if isdir(log_folder)
      @debug("Log folder $log_folder already exists")
  else
      mkpath(log_folder)
  end
theHenks commented 5 months ago

Done with latest PR