File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ export function getFavoritesReport(): string {
119119}
120120
121121/**
122- * Get the SEARCH body to search for recently modified files
122+ * Get the SEARCH body to search for recently modified/uploaded files
123123 *
124- * @param lastModified Oldest timestamp to include (Unix timestamp)
124+ * @param timestamp Oldest timestamp to include (Unix timestamp)
125125 * @example
126126 * ```ts
127127 * // SEARCH for recent files need a different DAV endpoint
@@ -139,7 +139,7 @@ export function getFavoritesReport(): string {
139139 * }) as ResponseDataDetailed<FileStat[]>
140140 * ```
141141 */
142- export function getRecentSearch ( lastModified : number ) : string {
142+ export function getRecentSearch ( timestamp : number ) : string {
143143 return `<?xml version="1.0" encoding="UTF-8"?>
144144<d:searchrequest ${ getDavNameSpaces ( ) }
145145 xmlns:ns="https://github.com/icewind1991/SearchDAV/ns">
@@ -173,12 +173,20 @@ export function getRecentSearch(lastModified: number): string {
173173 <d:literal>0</d:literal>
174174 </d:eq>
175175 </d:or>
176- <d:gt>
177- <d:prop>
178- <d:getlastmodified/>
179- </d:prop>
180- <d:literal>${ lastModified } </d:literal>
181- </d:gt>
176+ <d:or>
177+ <d:gt>
178+ <d:prop>
179+ <d:getlastmodified/>
180+ </d:prop>
181+ <d:literal>${ timestamp } </d:literal>
182+ </d:gt>
183+ <d:gt>
184+ <d:prop>
185+ <d:getuploadtime/>
186+ </d:prop>
187+ <d:literal>${ timestamp } </d:literal>
188+ </d:gt>
189+ </d:or>
182190 </d:and>
183191 </d:where>
184192 <d:orderby>
You can’t perform that action at this time.
0 commit comments