Skip to content

Support reading and writing file attributes #58806

Closed
@streamich

Description

@streamich

What is the problem this feature will solve?

All operating systems provide a mechanism to store and read Extended file attributes, provide an API to read/write/delete file attributes.

The attributes can store metadata such as the unique file ID (which is retained even if the file is moved), file version, mime type, checksum, contents encoding, etc.

The API could be part of the FileHandle interface:

  • FileHandle.prototype.readAttributes()
  • FileHandle.prototype.readAttribute(name)
  • FileHandle.prototype.writeAttribute(name, value)
  • FileHandle.prototype.deleteAttribute(name)

What is the feature you are proposing to solve the problem?

Extended the fs API with ability to read and write file attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions