简体   繁体   中英

Laravel allFiles() error glob Pattern exceeds the maximum allowed length of 260 characters

Hello I have this function

$files=File::allFiles(base_path('folder/'));

in this folder there are subfolder and when I try to get files it return

error glob Pattern exceeds the maximum allowed length of 260 characters

I know it is becaus subfolder character is 280 char but how I can fix it? I research but I don't found any solution.

You're missing a quote after / :

$files=File::allFiles(base_path('folder/));

Should be:

$files=File::allFiles(base_path('folder/'));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM