We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce1639f commit fb46daaCopy full SHA for fb46daa
src/qfieldcloud_sdk/sdk.py
@@ -598,7 +598,7 @@ def list_local_files(
598
) -> List[Dict[str, Any]]:
599
"""
600
Returns a list of dicts with information about local files. Usually used before uploading files.
601
- NOTE: files and dirs starting with leading zero in the root directory will be ignored.
+ NOTE: files and dirs starting with leading dot (.) or ending in tilde (~) will be ignored.
602
603
if not filter_glob:
604
filter_glob = "*"
@@ -608,7 +608,8 @@ def list_local_files(
608
if not path.is_file():
609
continue
610
611
- if str(path.relative_to(root_path)).startswith("."):
+ basename = path.relative_to(root_path).name
612
+ if basename.startswith(".") or basename.endswith("~"):
613
614
615
relative_name = path.relative_to(root_path)
0 commit comments