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

Add functionality for atomic file creation via unix rename #21

Closed
oschulz opened this issue Dec 19, 2023 · 2 comments
Closed

Add functionality for atomic file creation via unix rename #21

oschulz opened this issue Dec 19, 2023 · 2 comments

Comments

@oschulz
Copy link
Contributor

oschulz commented Dec 19, 2023

No description provided.

@theHenks
Copy link
Collaborator

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
Copy link
Collaborator

Done with latest PR

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

No branches or pull requests

2 participants