Skip to content

Commit 2c35194

Browse files
authored
FoundationEssentials: provide a known directory for "Autosave Information" (#636)
This adds a missing expected case for a known URL for storage.
1 parent 02e110f commit 2c35194

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/FoundationEssentials/FileManager/SearchPaths/FileManager+WindowsSearchPaths.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ private func _url(for id: KNOWNFOLDERID) -> URL {
2626

2727
func _WindowsSearchPathURL(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask) -> URL? {
2828
switch (directory, domain) {
29+
case (.autosavedInformationDirectory, .userDomainMask):
30+
_url(for: FOLDERID_LocalAppData).appending(component: "Autosave Information", directoryHint: .isDirectory)
31+
2932
case (.desktopDirectory, .userDomainMask):
3033
_url(for: FOLDERID_Desktop)
3134

0 commit comments

Comments
 (0)