-
-
Save marcusmoore/163f4070add18dacca8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Dropbox; | |
use League\Flysystem\Adapter\Local; | |
$dropbox = new Filesystem(new Dropbox($client, 'dropbox/root/dir')); | |
$local = new Filesystem(new Local('loca/root/path')); | |
$dropbox->write('destination.ext', $local->read('relative/path/to/file.ext')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment