Skip to content

Commit 5387030

Browse files
committed
Don't include trashed files in Google Drive queries
1 parent 6cbcbe0 commit 5387030

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/public/Get-GoogleDriveItems.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ function Get-GoogleDriveItems {
5353
$q += "'$ParentId' in parents"
5454
}
5555

56+
$q += "trashed=false" # Exclude trashed items
57+
5658
$queryArgs = @{
5759
q = [System.Web.HttpUtility]::UrlEncode($q -join ' and ')
5860
pageSize = 40
59-
}
61+
}
6062

6163
do {
6264

0 commit comments

Comments
 (0)