Skip to content

Opening file with open_writer(Append) throws an Error #10121

Closed
@d3xter

Description

@d3xter

When I open a File with the FileMode "Append",
rust throws an Error if the file doesnt exist, although
the documentation says that it should be created automatically:

Example:

let path = Path::new::<~str>(~"file.txt");
path.open_writer(Append);

Error:

task '<unnamed>' failed at 'Unhandled condition: io_error: std::rt::io::IoError{kind: OtherIoError, desc: "no such file or directory", detail: None}

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