mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2026-04-07 17:57:03 +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>
29 lines
508 B
JSON
29 lines
508 B
JSON
[
|
|
{
|
|
"path": "/User/admin/Application Support/App.app",
|
|
"parent": "/User/admin/Application Support",
|
|
"filename": "App.app",
|
|
"stem": "App",
|
|
"extension": "app",
|
|
"path_list": [
|
|
"/",
|
|
"User",
|
|
"admin",
|
|
"Application Support",
|
|
"App.app"
|
|
]
|
|
},
|
|
{
|
|
"path": "/User/admin/path",
|
|
"parent": "/User/admin",
|
|
"filename": "path",
|
|
"stem": "path",
|
|
"extension": "",
|
|
"path_list": [
|
|
"/",
|
|
"User",
|
|
"admin",
|
|
"path"
|
|
]
|
|
}
|
|
] |