mirror of
https://github.com/exituser/Pearcleaner.git
synced 2026-09-17 09:38:51 +00:00
Updates
This commit is contained in:
@@ -13,7 +13,6 @@ let home = FileManager.default.homeDirectoryForCurrentUser.path
|
||||
|
||||
class AppState: ObservableObject {
|
||||
@Published var appInfo: AppInfo
|
||||
// @Published var appInfoStore: [AppInfo] = []
|
||||
@Published var trashedFiles: [AppInfo] = []
|
||||
@Published var zombieFile: ZombieFile
|
||||
@Published var sortedApps: [AppInfo] = []
|
||||
@@ -166,28 +165,6 @@ struct ZombieFile: Identifiable, Equatable, Hashable {
|
||||
|
||||
}
|
||||
|
||||
//extension ZombieFile {
|
||||
// func toItems() -> [Item] {
|
||||
// var items: [Item] = []
|
||||
//
|
||||
// for (url, size) in self.fileSize {
|
||||
// let name = url.lastPathComponent
|
||||
// let isDirectory = url.hasDirectoryPath
|
||||
//
|
||||
// let item = Item(
|
||||
// url: url,
|
||||
// name: name,
|
||||
// size: size,
|
||||
// isDirectory: isDirectory
|
||||
// )
|
||||
//
|
||||
// items.append(item)
|
||||
// }
|
||||
//
|
||||
// return items
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
enum Arch {
|
||||
case arm
|
||||
|
||||
@@ -38,6 +38,7 @@ class Locations: ObservableObject {
|
||||
"\(home)/Library/LaunchAgents",
|
||||
"\(home)/Library/Logs",
|
||||
"\(home)/Library/Preferences",
|
||||
"\(home)/Library/PreferencePanes",
|
||||
"\(home)/Library/Preferences/ByHost",
|
||||
"\(home)/Library/Saved Application State",
|
||||
"\(home)/Library/Services",
|
||||
@@ -88,6 +89,7 @@ class Locations: ObservableObject {
|
||||
"\(home)/Library/LaunchAgents",
|
||||
"\(home)/Library/Logs",
|
||||
"\(home)/Library/Preferences",
|
||||
"\(home)/Library/PreferencePanes",
|
||||
"\(home)/Library/Preferences/ByHost",
|
||||
"\(home)/Library/Saved Application State",
|
||||
"\(home)/Library/WebKit",
|
||||
|
||||
Reference in New Issue
Block a user