mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Don't show directories in recent documents
This commit is contained in:
parent
5ded159dec
commit
8d53d7fe79
@ -59,6 +59,7 @@ final class DocumentsModel: ObservableObject {
|
||||
|
||||
return Array(
|
||||
contents(of: documentsDirectory)
|
||||
.filter { !isDirectory($0) }
|
||||
.sorted {
|
||||
((try? $0.resourceValues(forKeys: [.creationDateKey]).creationDate) ?? Date()) >
|
||||
((try? $1.resourceValues(forKeys: [.creationDateKey]).creationDate) ?? Date())
|
||||
|
Loading…
Reference in New Issue
Block a user