Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

writeFileSync does not accept empty content #57

@DanielSWolf

Description

@DanielSWolf

I'm trying to create an empty file. So I'm calling fs.writeFileSync('/foo.txt', '');. However, this throws an exception with the message "No content".

I don't see any reason why it shouldn't be allowed to pass an empty string as file content.

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