Skip to content

Commit d512b59

Browse files
committed
Default to document directory
1 parent a890d78 commit d512b59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/Shared/Storage/DiskStorage.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ final public class DiskStorage<T> {
2727
url = directory
2828
} else {
2929
url = try fileManager.url(
30-
for: .cachesDirectory, in: .userDomainMask, appropriateFor: nil, create: true
30+
for: .documentDirectory,
31+
in: .userDomainMask,
32+
appropriateFor: nil,
33+
create: true
3134
)
3235
}
3336

0 commit comments

Comments
 (0)