Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Create Actual Stats Object when Missing #15

Closed
CodeMan99 opened this issue Jun 2, 2018 · 2 comments
Closed

Feature: Create Actual Stats Object when Missing #15

CodeMan99 opened this issue Jun 2, 2018 · 2 comments

Comments

@CodeMan99
Copy link

Hey sindresorhus,

I was about to write a tool with a similar goal in mind. Then I found this after remembering to look for "chmod" (whoops! 馃槉).

Anyway, the primary difference is that I was intending to create a fs.Stats instance when it was missing. My plan was to use my module stats-ctor for that case.

Of course, there is a trade off in that some other properties of the stat would be defaulted. What do you think? Would that be useful?

@sindresorhus
Copy link
Owner

What's the use-case for needing fake fs.Stats info?

@CodeMan99
Copy link
Author

I cannot really remember now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants