2

Is there a way to call the disconnect() (in flysystem this function is exists, https://github.com/thephpleague/flysystem/blob/master/src/Adapter/Ftp.php#L189) function on a ftp-adapter (storage library)?

I do something like this:

$ftp = Storage::disk('ftp');
$ftp->makeDirectory('test');
$ftp->disconnect(); // this does not work...

Does anybody have an idea?

Jeff Puckett
  • 37,464
  • 17
  • 118
  • 167
MVUG
  • 45
  • 1
  • 7

1 Answers1

4

If you want to call the disconnect() method you should be able to:

$ftp->getDriver()->getAdapter()->disconnect();

Hope this helps!

Rwd
  • 34,180
  • 6
  • 64
  • 78