Skip to content

fs.chmod documentation 8.x & 9.x : The value of "mode" is not an "integer" #1545

@warlock

Description

@warlock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions