sas2parquet 0.1.5__tar.gz → 0.1.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sas2parquet
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: SAS → Parquet Hybrid Converter & Validator
5
5
  License-File: LICENSE
6
6
  Author: Zaman Ziabakhshganji
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sas2parquet"
3
- version = "0.1.5"
3
+ version = "0.1.6"
4
4
  description = "SAS → Parquet Hybrid Converter & Validator"
5
5
  authors = [
6
6
  {name = "Zaman Ziabakhshganji",email = "zaman.ganji@gmail.com"}
@@ -386,8 +386,14 @@ def main():
386
386
  print(f"\n🗂 Processing: {rel}")
387
387
 
388
388
  # Mirror structure under parquetdata/ (which lives next to sasdata/)
389
- pqf = (PARQUET_INPUT_DIR / rel).with_suffix('.parquet')
390
389
 
390
+ if rel.parent == Path("."):
391
+ pqf = (PARQUET_INPUT_DIR / rel.name).with_suffix(".parquet")
392
+ else:
393
+ parquet_dirs = [f"{p}_parquet" for p in rel.parent.parts]
394
+ pqf = (PARQUET_INPUT_DIR.joinpath(*parquet_dirs) / rel.name).with_suffix(".parquet")
395
+
396
+
391
397
  reconvert_file_ultimate(sas, pqf)
392
398
  print("-"*60)
393
399
 
File without changes
File without changes