mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Fix symbolic link regression in push & deploy
Change-type: patch Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
parent
aa286cc0e7
commit
3def4d0e4a
@ -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…
Reference in New Issue
Block a user