mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
modified first docstring by comments
This commit is contained in:
parent
170d2dc305
commit
fd00cf196b
1 changed files with 7 additions and 4 deletions
|
|
@ -92,9 +92,12 @@ def load_json_file(fpath):
|
||||||
|
|
||||||
|
|
||||||
def load_jsons_from_dir(path, *args, **kwargs):
|
def load_jsons_from_dir(path, *args, **kwargs):
|
||||||
"""Load all json files with content from entered path.
|
"""Load all .json files with content from entered folder path.
|
||||||
|
|
||||||
Enterd path hiearchy:
|
Data are loaded recursively from a directory and recreate the
|
||||||
|
hierarchy as a dictionary.
|
||||||
|
|
||||||
|
Entered path hiearchy:
|
||||||
|_ folder1
|
|_ folder1
|
||||||
| |_ data1.json
|
| |_ data1.json
|
||||||
|_ folder2
|
|_ folder2
|
||||||
|
|
@ -116,10 +119,10 @@ def load_jsons_from_dir(path, *args, **kwargs):
|
||||||
```
|
```
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
path (str): Path to folder where jsons should be.
|
path (str): Path to the root folder where the json hierarchy starts.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
dict: loaded data
|
dict: Loaded data.
|
||||||
"""
|
"""
|
||||||
output = {}
|
output = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue