Skip to content

Automatically create missing parent directories in _Z_DATA path#211

Open
silenc3r wants to merge 1 commit intorupa:masterfrom
silenc3r:patch-1
Open

Automatically create missing parent directories in _Z_DATA path#211
silenc3r wants to merge 1 commit intorupa:masterfrom
silenc3r:patch-1

Conversation

@silenc3r
Copy link
Contributor

When parent directories of _Z_DATA don't exist we should automatically create them.

@ericbn
Copy link
Contributor

ericbn commented Nov 12, 2017

Could also touch the file if it does not exist. This would remove the need for changes like 78f0d97 and tests like

# no file yet
[ -f "$datafile" ] || return

Copy link

@dmd dmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should be doing this; I believe it's more likely that the path is wrong than it's right but missing, and we should just fail correctly.

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

Successfully merging this pull request may close these issues.

3 participants