Skip to content

doc: add section in fs to document mode argument #20049

Description

@trivikr
  • Version: master
  • Platform: N/A
  • Subsystem: fs

I noticed this while reviewing #20042
The description of mode argument is repeated in fs.access() and fs.accessSync(), and can be moved to a single location.

WDYT @nodejs/fs? This would be a good first issue for a new contributor.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    fsIssues and PRs related to file-system APIs and the fs module.
    on Apr 15, 2018
  2. musgravejw commented on May 5, 2018

    @musgravejw
    Contributor

    Aren't these constants defined here?

    Perhaps the documentation could link to the existing constants list.

  3. trivikr commented on May 5, 2018

    @trivikr
    MemberAuthor

    Yup.

    But the following values will have to be added to the table:

    • F_OK - This is useful for determining if a file exists, but says nothing about rwx permissions. Default if no mode is specified.
    • X_OK - This has no effect on Windows (will behave like F_OK)
  4. added
    good first issueIssues that are suitable for first-time contributors.
    on May 5, 2018
  5. shobhitchittora commented on May 6, 2018

    @shobhitchittora
    Contributor

    @trivikr I'm on it.

  6. added 4 commits that reference this issue on May 6, 2018
    37abf87
    91bb735
    563b406
    d42adec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions