This is an automated email from the ASF dual-hosted git repository.

normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


The following commit(s) were added to refs/heads/master by this push:
     new b7923261 fix: replace deprecated fs.F_OK with fs.constants.F_OK (#1820)
b7923261 is described below

commit b79232612b773f66dcadc87ad76d5bc8137b8673
Author: stephan-kutzner <158050030+stephan-kutz...@users.noreply.github.com>
AuthorDate: Tue Jul 8 06:41:36 2025 +0200

    fix: replace deprecated fs.F_OK with fs.constants.F_OK (#1820)
    
    This addresses the warning DEP0176 introduces in Node.js v20.8.0
---
 lib/builders/ProjectBuilder.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/builders/ProjectBuilder.js b/lib/builders/ProjectBuilder.js
index 0e0e3aaa..17e3afb9 100644
--- a/lib/builders/ProjectBuilder.js
+++ b/lib/builders/ProjectBuilder.js
@@ -173,7 +173,7 @@ class ProjectBuilder {
             // This is the future-proof way of checking if a file exists
             // This must be synchronous to satisfy a Travis test
             try {
-                fs.accessSync(subProjectGradle, fs.F_OK);
+                fs.accessSync(subProjectGradle, fs.constants.F_OK);
             } catch (e) {
                 fs.cpSync(pluginBuildGradle, subProjectGradle);
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to