I found similar question on stackoverflow but noone answered there.
So I'am trying to get the list of files from the WEBDAV cloud storage using laravel-flysystem framework that is based on Flysystem. I did everything according to manual and everything is working perfectly except one function - listContents().
Here is an example of my code
var_dump(Flysystem::read('/test/test.txt'));
var_dump(Flysystem::listContents('/test/'));
This code returns the following:
string(4) "123"
array(0) {
}
I have test.txt file in the test/ directory and read() function return's it's content but listContents() function don't return the file.
Can someone please explain what can be done to get the list of files from the directory? Thanks.