Skip to content

Commit

Permalink
fix symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
vahtos committed Jan 26, 2024
1 parent 9636ed4 commit dffdaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/lib/services/filetree.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ filetree.updateDir = async function(dir) {
if (initial) { // sync walk for performance
initial = false;
try {
entries = rrdir.sync(fullDir, {stats: true, exclude: cfg.ignorePatterns});
entries = rrdir.sync(fullDir, {stats: true, exclude: cfg.ignorePatterns, followSymlinks: true});
} catch (err) {
log.error(err);
}
} else {
try {
entries = await rrdir.async(fullDir, {stats: true, exclude: cfg.ignorePatterns});
entries = await rrdir.async(fullDir, {stats: true, exclude: cfg.ignorePatterns, followSymlinks: true});
} catch (err) {
log.error(err);
}
Expand Down

0 comments on commit dffdaa4

Please sign in to comment.