Corrected an issue where the search for duplicate files also scanned and displayed different snapshots of the same file
This commit is contained in:
@@ -3976,6 +3976,8 @@ $btnScanDupes.Add_Click({
|
||||
-TrimDuplicates $false
|
||||
$hits = @($batch.ResultRows)
|
||||
foreach ($h in $hits) {
|
||||
# Ignore version history entries (SharePoint stores them under /_vti_history/)
|
||||
if ($h.Path -match '/_vti_history/') { continue }
|
||||
$fname = [System.IO.Path]::GetFileName($h.Path)
|
||||
try { $crDay = ([DateTime]$h.Created).Date.ToString('yyyy-MM-dd') } catch { $crDay = "" }
|
||||
try { $modDay = ([DateTime]$h.LastModifiedTime).Date.ToString('yyyy-MM-dd') } catch { $modDay = "" }
|
||||
|
||||
Reference in New Issue
Block a user