Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down