mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-12-26 00:31:54 +02:00
* draft for path_list * updaate doc * add input check * fix types * fix schema: add missing properties * add _process * fix _process docs * refactor: extract path.py parser * swap order of names alphabetically * documentation and comments * path parser: add early return for nodata * path and path-list parser: add test and fixtures * typo in file name * add early return for nodata * add test and fixtures * typo in file name * rename fixtures * rename fixtures * refactor to pathlib.Path * failing on windows - use PurePosixPath * changed the way to strip dot from suffix * add POSIX to path * test commit to see results on windows is failing * test commit to see results on windows is failing * add windows path detection * somehow Path not like the newline from input line * add test with more items * remove debug print * wrap test loops into into subTest * remove print statements * add path and path-list to CHANGELOG --------- Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
28 lines
461 B
JSON
28 lines
461 B
JSON
[
|
|
{
|
|
"path": "c:\\Program Files (x86)\\Git\\bin",
|
|
"parent": "c:\\Program Files (x86)\\Git",
|
|
"filename": "bin",
|
|
"stem": "bin",
|
|
"extension": "",
|
|
"path_list": [
|
|
"c:\\",
|
|
"Program Files (x86)",
|
|
"Git",
|
|
"bin"
|
|
]
|
|
},
|
|
{
|
|
"path": "c:\\my\\folder",
|
|
"parent": "c:\\my",
|
|
"filename": "folder",
|
|
"stem": "folder",
|
|
"extension": "",
|
|
"path_list": [
|
|
"c:\\",
|
|
"my",
|
|
"folder"
|
|
]
|
|
}
|
|
]
|