How to fetch files from external repository that are older than 7 days using D_pxListFiles ?

What should be the When rule to fetch files from external repository that are older than 7 days using D_pxListFiles ?

@rp001

DateTimeDifference(“@DateTime.CurrentDateTime”, “.pyLastModifiedTime”, “D”)>=7

Above expression checks if the files in D_pxListFiles is older than 7 days.