GithubHelp home page GithubHelp logo

flysystem-acd's People

Contributors

nikkiii avatar oskarstark avatar zn4rk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flysystem-acd's Issues

I didn't get it to work with the README example

this is my code:

    /**
     * {@inheritdoc}
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->io = new SymfonyStyle($input, $output);

        $this->io->title('Authorize Amazon Cloud Drive');

        $cache = new SQLite('email', './cache');

        $drive = new CloudDrive('email', 'client_id', 'secret', $cache);

        $response = $drive->getAccount()->authorize();

        if (!$response['success']) {
            print_r($response); // Get the URL from here
        }

        // Input the resulting redirected url
        $url = readline();

        $response = $drive->getAccount()->authorize($url);

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

        // Sync your local cache with the current state of your Cloud Drive.
        $drive->getAccount()->sync();

        $flysystem = new Filesystem(new AmazonCloudDrive($drive));
    }

this is the output:
bildschirmfoto 2016-11-14 um 15 21 51

Nothing happens...

Package not found

I cannot find the package over at packagist, so when running:
composer require nikkiii/flysystem-acd

I get thrown an InvalidArgumentException.

copy() throws an internal error

[Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: Missing argument 1 for CloudDrive\Node::download(), called in /Users/oskar.stark/dev/privat/acd/vendor/nikkiii/flysystem-acd/src/AmazonCloudDriv
  e.php on line 224 and defined

screenshot 2017-05-19 12 29 44

Add sync() to the example

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...

rename() is not working on ACD, but on local

Hey guys,

this is my code which works on my local machine:

if ('COMPLETE' == $file['basename']) {
    $renamed = $flysystem->rename($file['path'], str_replace('COMPLETE', '.complete', $file['path']));
    var_dump($renamed);die();
}

But on ACD its all the time false, do i need to activate something special?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.