Skip to content
This repository was archived by the owner on Sep 1, 2019. It is now read-only.

Commit 0ae742c

Browse files
authored
Remove files in ".Trash/" from visualisations
1 parent 1252ad9 commit 0ae742c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LocalStorage/Local Storage/Common.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func addToType(name: String, size: Int64, path: String) {
254254
let documentsPathEndIndex = path.index(AppState.documentsPath.endIndex, offsetBy: 1)
255255
let filePath = String(path[documentsPathEndIndex...])
256256

257-
if filePath.name.range(of: ".Trash/") {
257+
if filePath.name.range(of: ".Trash/") == nil {
258258
AppState.types[n].size += size
259259
AppState.types[n].number += 1
260260
AppState.types[n].paths.append(filePath)

0 commit comments

Comments
 (0)