mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 01:42:26 +00:00
Merge pull request #2410 from balena-io/fix-symlink-push-deploy
Fix symbolic link regression in push & deploy
This commit is contained in:
commit
40e0b2dbed
@ -225,7 +225,11 @@ async function listFiles(projectDir: string): Promise<string[]> {
|
||||
const _files = await fs.readdir(dir, { withFileTypes: true });
|
||||
for (const entry of _files) {
|
||||
const fpath = path.join(dir, entry.name);
|
||||
if (entry.isDirectory()) {
|
||||
const isDirectory =
|
||||
entry.isDirectory() ||
|
||||
(entry.isSymbolicLink() && (await fs.stat(fpath)).isDirectory());
|
||||
|
||||
if (isDirectory) {
|
||||
foundDirs.push(fpath);
|
||||
} else {
|
||||
files.push(fpath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user