Octobercms 3 update ftp problem

Afrer update from 2x to 3x ftp connector returns error

$files = Storage::disk(‘myftp’)->files(‘/’);

Class “League\Flysystem\Ftp\FtpAdapter” not found
~/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php line 202

filesystems.php

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
        'throw' => false
    ],
	
	'uploads' => [
		'driver' => 'local',
		'root' => storage_path('app/uploads'),
		'url' => '/storage/app/uploads',
		'visibility' => 'public',
		'throw' => false,
	],

	'media' => [
		'driver' => 'local',
		'root' => storage_path('app/media'),
		'url' => '/storage/app/media',
		'visibility' => 'public',
		'throw' => false,
	],

	'resources' => [
		'driver' => 'local',
		'root' => storage_path('app/resources'),
		'url' => '/storage/app/resources',
		'visibility' => 'public',
		'throw' => false,
	],		
	

    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
        'url' => env('AWS_URL'),
        'endpoint' => env('AWS_ENDPOINT'),
    ],

    'myftp' => [
        'driver' => 'ftp',
		'host' => 'ftp.host.com',
		'username' => 'username',
		'password' => 'password',
    ],			

],

You may need to install the adapter with

composer require league/flysystem-ftp:^3.0

OC 3.x doesnt support ftp driver for storage like oc2 did?

filesystem.php says

| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "**ftp**", "sftp", "s3"

For theese who faced same issue after update.

For ftp driver Install

composer require league/flysystem-ftp:^3.0

For sftp driver install

composer require league/flysystem-sftp-v3 "^3.0"

If ftp driver doesnt work try sftp driver.

If listing problem still appears add root path to ftp/sftp settings:

    'myftp' => [
        'driver' => 'sftp',
		'host' => 'ftp.host.com',
		'username' => 'username',
		'password' => 'secret',
		'root' => '/home/users/account'
    ],

More info File Storage - Laravel 9.x - The PHP Framework For Web Artisans

This area is managed by Laravel, perhaps they dropped support for it and we haven’t refreshed the inline documentation in the config.

edit: I found it is part of their documentation: