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

[Bug]: FsFile.allFilesGlob having issues on Windows #5

Open
ramonitor opened this issue Aug 23, 2023 · 0 comments
Open

[Bug]: FsFile.allFilesGlob having issues on Windows #5

ramonitor opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ramonitor
Copy link

What happened?

When using FsFile.allFilesGlob on a Windows machine the values on each file contain several invalid values compared to MacOS.

Issues on Windows are in these properties:

  • filename (contains full path on Windows instead of only the file name + extension)
  • isFile (false instead of true)
  • lastModified (undefined instead of having a value)
  • name (containing full path on Windows and not having extension on the file)
  • path (invalid path on Windows)
  • size (undefined on Windows)
  • sizeHuman ('0 B' on Windows)

How to reproduce the bug

Using this package as dependency of @kiwilan/fastify-utils on a Windows machine makes this issue reproducable. On a Mac things work fine.

Package Version

0.0.20

PHP Version

0

Which operating systems does with happen with?

Windows

Notes

No response

@ramonitor ramonitor added the bug Something isn't working label Aug 23, 2023
@ewilan-riviere ewilan-riviere self-assigned this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants