Skip to content

Commit

Permalink
Merge pull request #89 from vahtos/follow_symlinks
Browse files Browse the repository at this point in the history
fix symlinks
  • Loading branch information
markhughes authored Jan 29, 2024
2 parents c93f6ef + 6a9f951 commit 14cb683
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preferGlobal": true,
"private": true,
"engines": {
"node": ">= 12.10.0"
"node": ">= 14.14.0"
},
"scripts": {
"build": "DROPPY_CACHE_PATH=$PWD/packages/cli/dist/cache.json lerna run --stream build --",
Expand Down
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
2 changes: 1 addition & 1 deletion packages/server/lib/services/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ utils.rm = function(p, cb) {
};

utils.rmdir = function(p, cb) {
fs.rmdir(p, {recursive: true}, cb);
fs.rm(p, {recursive: true}, cb);
};

utils.move = function(src, dst, cb) {
Expand Down

0 comments on commit 14cb683

Please sign in to comment.