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

The results of the method listContents maybe is not right ? #1672

Open
894480109 opened this issue Jun 14, 2023 · 0 comments
Open

The results of the method listContents maybe is not right ? #1672

894480109 opened this issue Jun 14, 2023 · 0 comments

Comments

@894480109
Copy link

894480109 commented Jun 14, 2023

Bug Report

Q A
Flysystem Version 3.15.0
Adapter Name local
Adapter version ----

php version 8.0.29

Summary

I run my program on WSL2,use Hyperf framework, now I want to traverse a directory,so I use the listContents method,however,the size of the results is not right

How to reproduce

my directory has 1023 files,exact 1020,exclude . and .. and total in the first line
微信图片_20230614174345

here is my test code
微信图片_20230614174346

the result is 509
微信截图_20230614175056

then I read the source code, and change something, the file is vendor/league/flysystem-local/LocalFilesystemAdapter.php
微信截图_20230614175230

rerun the test, thje result is 1020, this is the correct size
微信截图_20230614175356

My question is, this is my error or a bug, if it is my error, can anyone give me some help to solve this, if it is a bug, I can submit a PR to solve this, thanks~~

@894480109 894480109 changed the title The results of the method listContents seems is not right ? The results of the method listContents seens is not right ? Jun 26, 2023
@894480109 894480109 changed the title The results of the method listContents seens is not right ? The results of the method listContents maybe is not right ? Jun 26, 2023
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

1 participant