Added support for cp functions from fs-extra.

This commit is contained in:
Napalys
2025-03-27 10:16:29 +01:00
parent 96a550582b
commit 7a08f32e16
3 changed files with 33 additions and 8 deletions

View File

@@ -434,7 +434,7 @@ module NodeJSLib {
* method might represent a file path.
*/
private predicate fsExtraExtensionFileParam(string methodName, int i) {
methodName = ["copy", "copySync", "copyFile"] and i = [0, 1]
methodName = ["copy", "copySync", "copyFile", "cp", "copyFileSync", "cpSync"] and i = [0, 1]
or
methodName = ["move", "moveSync"] and i = [0, 1]
or