mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-12-24 00:31:11 +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>
14 lines
278 B
JSON
14 lines
278 B
JSON
{
|
|
"path": "C:\\Windows\\Program Files\\xfolder\\file.txt",
|
|
"parent": "C:\\Windows\\Program Files\\xfolder",
|
|
"filename": "file.txt",
|
|
"stem": "file",
|
|
"extension": "txt",
|
|
"path_list": [
|
|
"C:\\",
|
|
"Windows",
|
|
"Program Files",
|
|
"xfolder",
|
|
"file.txt"
|
|
]
|
|
} |