Repository navigation
IFile.Create has different return type than File.Create #779
Copy link
Copy link
Closed
Labels
area: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributorsstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: enhancementIssues that propose new functionalityIssues that propose new functionality
Description
Activity
- addedstate: needs discussionIssues that need further discussionIssues that need further discussiontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
on Dec 14, 2021 This is more or less by design, because
FileStreamrelies on the real file system.We could return a custom subclass of
Streamthat adds theNameproperty.What do you think about this @Heldenkrieger01?
That would be great, especially for people like me, that move to Abstractions with existing code.
Cool, so let's make this as ready and discuss details in a PR, once somebody finds the time to work on this 👍
- addedarea: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: enhancementIssues that propose new functionalityIssues that propose new functionalityand removedstate: needs discussionIssues that need further discussionIssues that need further discussiontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
on Jan 6, 2022 - addedflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributors
on Feb 28, 2022 I think this issue can be closed, as the
FileSystemStreamwas implemented in #906 ...
Do you agree, @Heldenkrieger01 ?Reacted by Christian ThalmannI'm closing this. Feel free to reopen if needed!
Metadata
Metadata
Assignees
Labels
area: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributorsstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: enhancementIssues that propose new functionalityIssues that propose new functionality
Describe the bug
The
IFile.Create()method returns aStream, but the "original"File.Create()returns aFileStream. This is important, because theFileStreamcontains theName-property with the files name.Expected behavior
IFile.Create()returns aFileStream.