• File: LocalFilesystem.php
  • Full Path: /var/www/crm_set/modules/backup/vendor/backup-manager/backup-manager/src/Filesystems/LocalFilesystem.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 598 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php namespace BackupManager\Filesystems;

use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem as Flysystem;

/**
 * Class LocalFilesystem
 * @package BackupManager\Filesystems
 */
class LocalFilesystem implements Filesystem {

    /**
     * Test fitness of visitor.
     * @param $type
     * @return bool
     */
    public function handles($type) {
        return strtolower($type) == 'local';
    }

    /**
     * @param array $config
     * @return Flysystem
     */
    public function get(array $config) {
        return new Flysystem(new Local($config['root']));
    }
}