We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b981636 commit c79c658Copy full SHA for c79c658
1 file changed
lara/views/FileManagerView.swift
@@ -9,7 +9,7 @@ import SwiftUI
9
import Foundation
10
11
struct FileItem: Identifiable {
12
- let id = UUID()
+ let id: UUID = UUID()
13
let name: String
14
let path: String
15
let isDirectory: Bool
@@ -46,7 +46,7 @@ class FileListerPOSIX: NSObject {
46
if lstat(fullPath, &stat_buf) == 0 {
47
let isDir = (stat_buf.st_mode & S_IFDIR) != 0
48
let size = UInt64(stat_buf.st_size)
49
- let modDate = Date(timeIntervalSince1970: TimeInterval(stat_buf.st_mtime))
+ let modDate = Date(timeIntervalSince1970: TimeInterval(stat_buf.st_mtimespec.tv_sec))
50
51
let item = FileItem(
52
name: name,
0 commit comments