Jaymon / testdata

Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
MIT License
10 stars 0 forks source link

create_files, _modules, _dirs change #52

Closed Jaymon closed 1 year ago

Jaymon commented 5 years ago

each of the plural methods take a dict where the key is the path, it would be great if the value could also be a dict, for example:

{
  "foo": {
    "bar.txt": "",
    "che/boo.txt": ""
  }
}

Would create:

foo/bar.txt
foo/che/boo.txt

Basically, check if value is a Mapping, if it is recurse setting the base directory as the key + current base directory

Jaymon commented 1 year ago

This was fixed at some point in datatypes and this inherited that update