File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1162,8 +1162,19 @@ public final class RerootedFileSystemView: FileSystem {
11621162// `underlyingFileSystem` is required to be `Sendable`.
11631163extension RerootedFileSystemView : @unchecked Sendable { }
11641164
1165+ private var _localFileSystem : any FileSystem = LocalFileSystem ( )
1166+
11651167/// Public access to the local FS proxy.
1166- public var localFileSystem : FileSystem = LocalFileSystem ( )
1168+ public var localFileSystem : any FileSystem {
1169+ get {
1170+ return _localFileSystem
1171+ }
1172+
1173+ @available ( * , deprecated, message: " This global should never be mutable and is supposed to be read-only. Deprecated in Apr 2023. " )
1174+ set {
1175+ _localFileSystem = newValue
1176+ }
1177+ }
11671178
11681179// `LocalFileSystem` doesn't hold any internal state and all of its underlying operations are blocking.
11691180extension LocalFileSystem : @unchecked Sendable { }
You can’t perform that action at this time.
0 commit comments