barryvdh / elfinder-flysystem-driver

elFinder driver for Flysystem
184 stars 41 forks source link

Problem of Copy.com adapter (`scandir` return empty) #1

Closed nao-pon closed 9 years ago

nao-pon commented 9 years ago

I try with

use Barracuda\Copy\API;
use League\Flysystem\Filesystem;
use League\Flysystem\Copy\CopyAdapter;
$copy_consumerKey ='*****';
$copy_consumerSecret ='*****';
$copy_accessToken ='*****';
$copy_tokenSecret ='*****';
$vol_options = array(
        array(
            'driver' => 'Flysystem',
            'filesystem' => new Filesystem(new CopyAdapter(new API($copy_consumerKey, $copy_consumerSecret, $copy_accessToken, $copy_tokenSecret)))
);

upload, mkdir, mkfile are OK but scandir return empty array so nothing is shown to cwd when reload.

barryvdh commented 9 years ago

Does the Copy adapter work correctly without elFinder?

nao-pon commented 9 years ago

I don' t check with out elFinder. May be Flysystem's problem. ref. https://github.com/thephpleague/flysystem/issues/405 Thanks!

barryvdh commented 9 years ago

I see it's fixed upstream. Does this also solve the problem with elFinder?

nao-pon commented 9 years ago

Yes :+1: Thanks!