File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
CodeEditModules/Modules/WorkspaceClient/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ public extension WorkspaceClient {
23
23
/// - Parameter url: The URL of the directory to load the items of
24
24
/// - Returns: `[FileItem]` representing the contents of the directory
25
25
func loadFiles( fromURL url: URL ) throws -> [ FileItem ] {
26
- let directoryContents = try fileManager. contentsOfDirectory ( at: url, includingPropertiesForKeys: nil )
26
+ let directoryContents = try fileManager. contentsOfDirectory ( at: url. resolvingSymlinksInPath ( ) ,
27
+ includingPropertiesForKeys: nil )
27
28
var items : [ FileItem ] = [ ]
28
29
29
30
for itemURL in directoryContents {
@@ -75,7 +76,7 @@ public extension WorkspaceClient {
75
76
var didChangeSomething = false
76
77
77
78
// get the actual directory children
78
- let directoryContentsUrls = try fileManager. contentsOfDirectory ( at: fileItem. url,
79
+ let directoryContentsUrls = try fileManager. contentsOfDirectory ( at: fileItem. url. resolvingSymlinksInPath ( ) ,
79
80
includingPropertiesForKeys: nil )
80
81
81
82
// test for deleted children, and remove them from the index
You can’t perform that action at this time.
0 commit comments