-
Notifications
You must be signed in to change notification settings - Fork 16
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return file names? #78
Comments
@goldingdamien - thanks for raising this. It would be good to drill down into some more detail. Can you provide some example situations/scenarios you had in mind? If the library could be configured to return |
Basic file info is probably best as I think many people would expect or be more familiar with it. |
In V2 of FileHound I'll consider returning a more feature rich file object. However, for V1, I can return a simple file object containing For example: const results = await FileHound.create()
.path(fixtureDir + '/justFiles')
.includeFileStats()
.find();
console.log(results) // an array of file objects e.g [ {path: 'myPath', stats: {}} ] Does that meet your requirements? If so, I should be able to do a minor release with 24hrs. |
Yes, the stats would be great, thanks. |
@goldingdamien - support added for including file stats in v1.17.0 |
Any chance of adding way to return filenames or file objects?
#64
something like below:
.returns('filename') // 'path' - default, filename, file.
I understand the desire to keep things simple, but this library provides more than just file names due to the chaining mechanism which could be applied to more situations.
Regards.
The text was updated successfully, but these errors were encountered: