I do not paid either. However, my trash is not so full
(Get-ChildItem Y:\storagenode2\storage\trash\ -File -Recurse | Where-Object{$_.LastWriteTime -lt (Get-Date).AddDays(-7)} | ft LastWriteTime, Name).Count
117
(Get-ChildItem Y:\storagenode2\storage\trash\ -File -Recurse | Where-Object{$_.LastWriteTime -lt (Get-Date).AddDays(-8)} | ft LastWriteTime, Name).Count
0
So nothing older than 7 days.
But I’ll ask devs, what’s date they are using.
There are:
CreationTime
LastWriteTime
-
LastAccessTime
Also, there are an UTC versions of the same dates.
Obviously it’s not a CreationTime
, because the piece can be created a lot of time ago before landing in trash. So, I selected the LastWriteTime
, because it’s when the file has been written here.
Could you calculate by LastWriteTime
too?
Those was a morning results. The evening ones:
(Get-ChildItem Y:\storagenode2\storage\trash\ -File -Recurse | Where-Object{$_.LastWriteTime -lt (Get-Date).AddDays(-7)} | ft LastWriteTime, Name).Count
61