touchdirs: protect parent directories