| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
import sys |
| 4 |
import pathlib |
| 5 |
|
| 6 |
paths = [ |
| 7 |
'ns-col-1.0.0.tar.gz', |
| 8 |
'foo.txt', |
| 9 |
'README.rst', |
| 10 |
'GPL', |
| 11 |
'LICENSES/MIT.txt', |
| 12 |
'.reuse/dep5', |
| 13 |
'artifacts/.gitkeep', |
| 14 |
'plugins/vars/bar.yml', |
| 15 |
'plugins/vars/bar.yml.license', |
| 16 |
'plugins/vars/baz.yaml', |
| 17 |
'plugins/vars/test.py', |
| 18 |
'plugins/vars/docs.md', |
| 19 |
'plugins/netconf/bar.yml', |
| 20 |
'plugins/netconf/baz.yaml', |
| 21 |
'plugins/netconf/test.py', |
| 22 |
'plugins/netconf/docs.md', |
| 23 |
'plugins/cache/bar.yml', |
| 24 |
'plugins/cache/baz.yaml', |
| 25 |
'plugins/cache/test.py', |
| 26 |
'plugins/cache/docs.md', |
| 27 |
'plugins/test/bar.yml', |
| 28 |
'plugins/test/baz.yaml', |
| 29 |
'plugins/test/test.py', |
| 30 |
'plugins/test/docs.md', |
| 31 |
'plugins/connection/bar.yml', |
| 32 |
'plugins/connection/baz.yaml', |
| 33 |
'plugins/connection/test.py', |
| 34 |
'plugins/connection/docs.md', |
| 35 |
'plugins/doc_fragments/bar.yml', |
| 36 |
'plugins/doc_fragments/baz.yaml', |
| 37 |
'plugins/doc_fragments/test.py', |
| 38 |
'plugins/doc_fragments/docs.md', |
| 39 |
'plugins/shell/bar.yml', |
| 40 |
'plugins/shell/baz.yaml', |
| 41 |
'plugins/shell/test.py', |
| 42 |
'plugins/shell/docs.md', |
| 43 |
'plugins/terminal/bar.yml', |
| 44 |
'plugins/terminal/baz.yaml', |
| 45 |
'plugins/terminal/test.py', |
| 46 |
'plugins/terminal/docs.md', |
| 47 |
'plugins/lookup/bar.yml', |
| 48 |
'plugins/lookup/baz.yaml', |
| 49 |
'plugins/lookup/test.py', |
| 50 |
'plugins/lookup/docs.md', |
| 51 |
'plugins/httpapi/bar.yml', |
| 52 |
'plugins/httpapi/baz.yaml', |
| 53 |
'plugins/httpapi/test.py', |
| 54 |
'plugins/httpapi/docs.md', |
| 55 |
'plugins/action/bar.yml', |
| 56 |
'plugins/action/baz.yaml', |
| 57 |
'plugins/action/test.py', |
| 58 |
'plugins/action/docs.md', |
| 59 |
'plugins/inventory/bar.yml', |
| 60 |
'plugins/inventory/baz.yaml', |
| 61 |
'plugins/inventory/test.py', |
| 62 |
'plugins/inventory/docs.md', |
| 63 |
'plugins/module_utils/bar.ps1', |
| 64 |
'plugins/module_utils/test.py', |
| 65 |
'plugins/module_utils/docs.md', |
| 66 |
'plugins/module_utils/baz.yml', |
| 67 |
'plugins/become/bar.yml', |
| 68 |
'plugins/become/baz.yaml', |
| 69 |
'plugins/become/test.py', |
| 70 |
'plugins/become/docs.md', |
| 71 |
'plugins/callback/bar.yml', |
| 72 |
'plugins/callback/baz.yaml', |
| 73 |
'plugins/callback/test.py', |
| 74 |
'plugins/callback/docs.md', |
| 75 |
'plugins/filter/bar.yml', |
| 76 |
'plugins/filter/baz.yaml', |
| 77 |
'plugins/filter/test.py', |
| 78 |
'plugins/filter/docs.md', |
| 79 |
'plugins/cliconf/bar.yml', |
| 80 |
'plugins/cliconf/baz.yaml', |
| 81 |
'plugins/cliconf/test.py', |
| 82 |
'plugins/cliconf/docs.md', |
| 83 |
'plugins/modules/foo.yml', |
| 84 |
'plugins/modules/qux.ps1', |
| 85 |
'plugins/modules/test2.py', |
| 86 |
'plugins/modules/bar.yaml', |
| 87 |
'plugins/modules/docs.md', |
| 88 |
'plugins/strategy/bar.yml', |
| 89 |
'plugins/strategy/baz.yaml', |
| 90 |
'plugins/strategy/test.py', |
| 91 |
'plugins/strategy/docs.md', |
| 92 |
'tests/integration/targets/foo/aliases', |
| 93 |
'tests/integration/targets/foo/tasks/main.yml', |
| 94 |
'tests/output/foo', |
| 95 |
'tests/units/test_foo.py', |
| 96 |
'roles/foo/vars/main.yaml', |
| 97 |
'roles/foo/tasks/main.yml', |
| 98 |
'roles/foo/templates/foo.j2', |
| 99 |
'playbooks/baz.json', |
| 100 |
'playbooks/foo.yml', |
| 101 |
'playbooks/bar.yaml', |
| 102 |
'docs/foobar/qux/baz.txt', |
| 103 |
'docs/foobar/qux/bar', |
| 104 |
'docs/docsite/bar.yml', |
| 105 |
'docs/docsite/baz.yaml', |
| 106 |
'docs/docsite/apple.j2', |
| 107 |
'docs/docsite/qux.json', |
| 108 |
'docs/docsite/orange.txt', |
| 109 |
'docs/docsite/foo.rst', |
| 110 |
'changelogs/fragments/foo.yml', |
| 111 |
'changelogs/fragments/bar.yaml' |
| 112 |
] |
| 113 |
|
| 114 |
root = pathlib.Path(sys.argv[1]) |
| 115 |
|
| 116 |
for path in paths: |
| 117 |
print(path) |
| 118 |
path = root / path |
| 119 |
path.parent.mkdir(parents=True, exist_ok=True) |
| 120 |
path.touch() |