nikkiii / flysystem-acd

Flysystem adapter for Amazon Cloud Drive
14 stars 2 forks source link

Add sync() to the example #2

Closed Zn4rK closed 8 years ago

Zn4rK commented 8 years ago

I couldn't get this to work at first. I got thrown an exception saying No node by name 'Cloud Drive' found in the database.

The solution was pretty simple, I just added:

$drive->getAccount()->sync();

After

// Initialize Node
Node::init($drive->getAccount(), $cache);

I can make a PR if you'd like...