z icon indicating copy to clipboard operation
z copied to clipboard

Automatically create missing parent directories in _Z_DATA path

Open silenc3r opened this issue 8 years ago • 1 comments

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

silenc3r avatar Aug 21 '17 12:08 silenc3r

Could also touch the file if it does not exist. This would remove the need for changes like https://github.com/rupa/z/commit/78f0d97 and tests like

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

ericbn avatar Nov 12 '17 14:11 ericbn