You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}
The text was updated successfully, but these errors were encountered:
Looking at the documentation, it doesn't seem to state that this is the intended behavior. Could you point me at the documentation which says that this should be allowed?
Ah thanks! I wonder if we shouldn't have Create or CreateOrTruncate and have the file always created on write access with the possible modes of Open, Append, or Truncate...
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:
Error:
The text was updated successfully, but these errors were encountered: