Skip to content

Commit dab1515

Browse files
committed
Addressing review
1 parent e5389e6 commit dab1515

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Or if multiple type of files:
238238
=== ":material-powershell: PowerShell"
239239

240240
```powershell
241-
qfieldcloud-cli delete-files "123e4567-e89b-12d3-a456-426614174000" --filter "*.jpg" '*.csv'
241+
qfieldcloud-cli delete-files "123e4567-e89b-12d3-a456-426614174000" --filter "*.jpg" "*.csv"
242242
```
243243

244244
You can also delete specific files by specifying their exact paths:

qfieldcloud_sdk/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def patch_project(
518518
)
519519
@click.option(
520520
"--throw-on-error/--no-throw-on-error",
521-
help="If any project file delete operations fails stop, stop deleting the rest. Default: False",
521+
help="If any project file delete operations fails, stop deleting the rest. Default: False",
522522
)
523523
@click.pass_context
524524
def delete_files(ctx: Context, project_id, paths, filter, throw_on_error):
@@ -528,6 +528,7 @@ def delete_files(ctx: Context, project_id, paths, filter, throw_on_error):
528528

529529
if not all_patterns:
530530
log("You must provide at least one file path or use the --filter option.")
531+
return
531532

532533
paths_result = ctx.obj["client"].delete_files(
533534
project_id, all_patterns, throw_on_error

qfieldcloud_sdk/sdk.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,6 @@ def delete_files(
10491049

10501050
return glob_results
10511051

1052-
return glob_results
1053-
10541052
def delete_file(
10551053
self,
10561054
project_id: str,

0 commit comments

Comments
 (0)