mdify-cli 3.1.0__py3-none-any.whl → 3.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mdify/__init__.py +1 -1
- mdify/cli.py +6 -13
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/METADATA +1 -1
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/RECORD +8 -8
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/WHEEL +0 -0
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/entry_points.txt +0 -0
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/licenses/LICENSE +0 -0
- {mdify_cli-3.1.0.dist-info → mdify_cli-3.1.1.dist-info}/top_level.txt +0 -0
mdify/__init__.py
CHANGED
mdify/cli.py
CHANGED
|
@@ -1175,7 +1175,9 @@ def main_async_remote(args) -> int:
|
|
|
1175
1175
|
print(f"Error: Input file or directory not found: {args.input}", file=sys.stderr)
|
|
1176
1176
|
return 1
|
|
1177
1177
|
|
|
1178
|
-
|
|
1178
|
+
# Store resolved path as base for relative path calculations
|
|
1179
|
+
input_base = input_path.resolve()
|
|
1180
|
+
files_to_convert = get_files_to_convert(input_base, args.glob, args.recursive)
|
|
1179
1181
|
|
|
1180
1182
|
if not files_to_convert:
|
|
1181
1183
|
await ssh_client.disconnect()
|
|
@@ -1285,19 +1287,10 @@ def main_async_remote(args) -> int:
|
|
|
1285
1287
|
|
|
1286
1288
|
# Determine output path
|
|
1287
1289
|
output_dir = Path(args.out_dir)
|
|
1290
|
+
output_file = get_output_path(input_file, input_base, output_dir, args.flat)
|
|
1288
1291
|
|
|
1289
|
-
#
|
|
1290
|
-
|
|
1291
|
-
try:
|
|
1292
|
-
rel_path = input_file.relative_to(input_path)
|
|
1293
|
-
output_subdir = output_dir / rel_path.parent
|
|
1294
|
-
except ValueError:
|
|
1295
|
-
output_subdir = output_dir
|
|
1296
|
-
else:
|
|
1297
|
-
output_subdir = output_dir
|
|
1298
|
-
|
|
1299
|
-
output_subdir.mkdir(parents=True, exist_ok=True)
|
|
1300
|
-
output_file = output_subdir / f"{input_file.stem}.md"
|
|
1292
|
+
# Ensure output directory exists
|
|
1293
|
+
output_file.parent.mkdir(parents=True, exist_ok=True)
|
|
1301
1294
|
|
|
1302
1295
|
# Check if output exists and skip if not overwrite
|
|
1303
1296
|
if output_file.exists() and not args.overwrite:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
assets/mdify.png,sha256=qUj7WXWqNwpI2KNXOW79XJwqFqa-UI0JEkmt1mmy4Rg,1820418
|
|
2
|
-
mdify/__init__.py,sha256=
|
|
2
|
+
mdify/__init__.py,sha256=_C45QsMJxMtjDM6sIpFOC7912SJbhfrBhrZ06ZjrAO8,90
|
|
3
3
|
mdify/__main__.py,sha256=bhpJ00co6MfaVOdH4XLoW04NtLYDa_oJK7ODzfLrn9M,143
|
|
4
|
-
mdify/cli.py,sha256=
|
|
4
|
+
mdify/cli.py,sha256=Ro_v7i1o6rszfAUTu3W52t5OO5kR_dda1CWbnjfXgE8,81843
|
|
5
5
|
mdify/container.py,sha256=BjL5ZR__n1i_WHifXKllTPoqO7IuOUdPDo5esuNg0Iw,8213
|
|
6
6
|
mdify/docling_client.py,sha256=xuQR6sC1v3EPloOSwExoHCqT4uUxE8myYq-Yeby3C2I,7975
|
|
7
7
|
mdify/formatting.py,sha256=lJKhMbDPcaWCdyEa7aKwAm_desaWvkfDc8C3EP7LWp4,790
|
|
@@ -10,9 +10,9 @@ mdify/ssh/client.py,sha256=nO7gAQ6eWxIXFIOplW2F2ya0-1ZEFlLmz3ovi1TEFTg,14997
|
|
|
10
10
|
mdify/ssh/models.py,sha256=jpbDS1yGhd7Xwq2tW7bZv14mTBlR8DCfhT4x-Xf2Wq4,17676
|
|
11
11
|
mdify/ssh/remote_container.py,sha256=KB8rrsp3h5s_2BKPBXhzkOdQFafyPGQhSnFbK20b4yQ,10230
|
|
12
12
|
mdify/ssh/transfer.py,sha256=aQuWa_B81McrgZBBWo_CxnjwoiGHmoxAoqObm19JAk8,10940
|
|
13
|
-
mdify_cli-3.1.
|
|
14
|
-
mdify_cli-3.1.
|
|
15
|
-
mdify_cli-3.1.
|
|
16
|
-
mdify_cli-3.1.
|
|
17
|
-
mdify_cli-3.1.
|
|
18
|
-
mdify_cli-3.1.
|
|
13
|
+
mdify_cli-3.1.1.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
|
|
14
|
+
mdify_cli-3.1.1.dist-info/METADATA,sha256=KFklqUB5LjJqiDqynre9fX00KhTwIDdaFAOL8_uwPtE,14766
|
|
15
|
+
mdify_cli-3.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
16
|
+
mdify_cli-3.1.1.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
|
|
17
|
+
mdify_cli-3.1.1.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
|
|
18
|
+
mdify_cli-3.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|