creocoder / yii2-flysystem

The Flysystem integration for the Yii framework.
Other
283 stars 76 forks source link

listPaths() don't exist? #21

Closed ipppinto closed 6 years ago

ipppinto commented 7 years ago

Hi,

I try to use $paths = Yii::$app->fs->listPaths() and have this error:

snap 2016-11-07 at 15 58 51

It's normal or is a bad configuration mine?

Thank you

ipppinto commented 7 years ago

The answer:

Yii::$app->fs->addPlugin(new League\Flysystem\Plugin\ListPaths()); $paths = Yii::$app->fs->listPaths();

foreach ($paths as $path) { echo $path; }