Resolve Node.js deprecation DEP0178 (#17633)
This commit is contained in:
1 parent
1652973553
commit
46a55c1feb
1 file changed
+1
-1
@@ -34,7 +34,7 @@ async function* checkDirectory(directory) {
|
||||
|
||||
for (const dirent of files) {
|
||||
if (dirent.isDirectory() && dirent.name !== SNAPSHOTS_DIRECTORY_NAME) {
|
||||
yield* checkDirectory(path.join(dirent.path, dirent.name));
|
||||
yield* checkDirectory(path.join(dirent.parentPath, dirent.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user