You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "mode" value on the web is a "whole number". But sometimes you need an "octal". "number is the correct type in javascript.
Thank you.
The text was updated successfully, but these errors were encountered:
warlock
changed the title
fs.chmod documentation: The value of "mode" is not an "integer"
fs.chmod documentation 8.x & 9.x : The value of "mode" is not an "integer"
Jan 5, 2018
Octals (0755) are integers, so I don't really get the problem. The type number includes integers and floating point numbers, so why would number be more appropriate than integer?
https://nodejs.org/dist/latest-v8.x/docs/api/fs.html#fs_fs_chmod_path_mode_callback
https://nodejs.org/dist/latest-v9.x/docs/api/fs.html#fs_fs_chmod_path_mode_callback
The "mode" value on the web is a "whole number". But sometimes you need an "octal". "number is the correct type in javascript.
Thank you.
The text was updated successfully, but these errors were encountered: