Merged
Conversation
A CREATE_DIR parameter can be set to 1 to enable this feature. The default is 0 (i.e. no directory creation).
Now with both TempSuffix and CreateDir PVs
Was originally longout/in and are now bo/bi as per convention. EDM screen modified to reflect this.
Reverted the change of NDFile.template to use longin/out again as the Create Directory feature actually uses the value of the parameter rather than just enable/disable. Modified the EDM screen to match.
To include the File writer create directory feature.
Member
Author
|
I have just had a go at merging this and #48 together into master on my local clone. There are a few (benign) conflicts with #48 as these both add new parameters in the same location in the source files. Although we want to keep both additions, git thinks it is a conflict and so it has to be resolved manually. It is not a big deal, but to avoid confusion and make life bearable; I propose to first merge #48 and then merge master into this CreateDir branch, resolving the conflicts here. Afterwards, this Pull Request can be automatically merged into master. |
MarkRivers
added a commit
that referenced
this pull request
Jan 8, 2015
File writer create directory feature
This was referenced Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a feature which was implemented April 2014 at DLS by @NicholasRees.
The NDFileCreateDir parameter is used to automatically create directories if they don't exist. It works in 3 modes:
This feature is independent of the TempSuffix feature in pull request #48 . However, the source code of these two pull requests live in the same functions (neighbouring lines) so care should be taken when merging to ensure they do not overwrite each other...