File tree Expand file tree Collapse file tree
Sources/SQLiteData/CloudKit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 open " \( url. path ( percentEncoded: false ) ) "
1414 """
1515 )
16- try FileManager . default. createDirectory (
17- at: . applicationSupportDirectory,
18- withIntermediateDirectories: true
19- )
20-
16+ #if !os(tvOS)
17+ try FileManager . default. createDirectory (
18+ at: . applicationSupportDirectory,
19+ withIntermediateDirectories: true
20+ )
21+ #endif
2122 @Dependency ( \. context) var context
2223 guard !url. isInMemory || context != . live
2324 else {
Original file line number Diff line number Diff line change 22392239 containerIdentifier: containerIdentifier
22402240 )
22412241 let path = url. isInMemory ? url. absoluteString : url. path ( percentEncoded: false )
2242- try FileManager . default. createDirectory (
2243- at: . applicationSupportDirectory,
2244- withIntermediateDirectories: true
2245- )
2242+ #if !os(tvOS)
2243+ try FileManager . default. createDirectory (
2244+ at: . applicationSupportDirectory,
2245+ withIntermediateDirectories: true
2246+ )
2247+ #endif
22462248 let database : any DatabaseWriter =
22472249 url. isInMemory
22482250 ? try DatabaseQueue ( path: path)
You can’t perform that action at this time.
0 commit comments