nia-sync 0.1.4__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: nia-sync
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Keep your local files in sync with Nia Cloud
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: typer>=0.9.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nia-sync
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Keep your local files in sync with Nia Cloud
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: typer>=0.9.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "nia-sync"
7
- version = "0.1.4"
7
+ version = "0.1.6"
8
8
  description = "Keep your local files in sync with Nia Cloud"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
@@ -75,10 +75,19 @@ def sync_source(source: dict[str, Any]) -> dict[str, Any]:
75
75
  Result dict with status, path, and stats
76
76
  """
77
77
  local_folder_id = source.get("local_folder_id")
78
- path = source.get("path", "")
78
+ path = source.get("path") or ""
79
79
  detected_type = source.get("detected_type")
80
80
  cursor = source.get("cursor", {})
81
81
 
82
+ # Skip sources without a valid path (e.g., remote-only sources)
83
+ if not path:
84
+ logger.debug(f"Skipping source {local_folder_id}: no path configured")
85
+ return {
86
+ "path": None,
87
+ "status": "skipped",
88
+ "message": "No local path configured",
89
+ }
90
+
82
91
  # Expand ~ in path
83
92
  path = os.path.expanduser(path)
84
93
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes