From 6eba3d372d1f2603b1c298996fc0003c4eb930c4 Mon Sep 17 00:00:00 2001 From: Johnny Sequeira Date: Tue, 17 Feb 2026 09:56:27 -0600 Subject: [PATCH] Fixing upload of hidden folder --- qfieldcloud_sdk/sdk.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/qfieldcloud_sdk/sdk.py b/qfieldcloud_sdk/sdk.py index 9b10eef..3ba1e62 100644 --- a/qfieldcloud_sdk/sdk.py +++ b/qfieldcloud_sdk/sdk.py @@ -1339,11 +1339,17 @@ def list_local_files( if not path.is_file(): continue - basename = path.relative_to(root_path).name - if basename.startswith(".") or basename.endswith("~"): + relative_name = path.relative_to(root_path) + + skip_file = False + for part in relative_name.parts: + if part.startswith(".") or part.endswith("~"): + skip_file = True + break + + if skip_file: continue - relative_name = path.relative_to(root_path) files.append( { "name": str(relative_name),