We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 55b6303 + 6eba3d3 commit a4546d7Copy full SHA for a4546d7
1 file changed
qfieldcloud_sdk/sdk.py
@@ -1374,11 +1374,17 @@ def list_local_files(
1374
if not path.is_file():
1375
continue
1376
1377
- basename = path.relative_to(root_path).name
1378
- if basename.startswith(".") or basename.endswith("~"):
+ relative_name = path.relative_to(root_path)
+
1379
+ skip_file = False
1380
+ for part in relative_name.parts:
1381
+ if part.startswith(".") or part.endswith("~"):
1382
+ skip_file = True
1383
+ break
1384
1385
+ if skip_file:
1386
1387
- relative_name = path.relative_to(root_path)
1388
files.append(
1389
{
1390
"name": str(relative_name),
0 commit comments