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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add size of file to metadata #963

Open
Gabriel-Alves-Cunha opened this issue Dec 20, 2021 · 0 comments
Open

Add size of file to metadata #963

Gabriel-Alves-Cunha opened this issue Dec 20, 2021 · 0 comments

Comments

@Gabriel-Alves-Cunha
Copy link

Hello, I've been building an app and it would be quite useful if the parseFile() returned the file size. I saw in the parseFile source code that apparently it already gets the file size, so I imagine it would be just a matter of returning it in the metadata, right?

In the meantime I'm having to put const { size } = await stat(path); on my code, making the function slower cause it's called several times in a row.

@Gabriel-Alves-Cunha Gabriel-Alves-Cunha changed the title Add size of file Add size of file to metadata Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants