public static function createFromPath($path)
    {
        if (!is_dir($path) || !is_readable($path)) {
            throw new \LogicException(sprintf('%s does not exist or is not readable.', $path));
        }

        return static::createFromFilesystem(new Filesystem(new Local($path)));
    }
public static function createFromPath($path)
    {
        if (!is_dir($path) || !is_readable($path)) {
            throw new \LogicException(sprintf('%s does not exist or is not readable.', $path));
        }

        return static::createFromFilesystem(new Filesystem(new Local($path)));
    }
public static function createFromPath ( $ path ) { if ( ! is_dir ( $ path ) || ! is_readable ( $ path ) ) { throw new \ LogicException ( sprintf ( '%s does not exist or is not readable.' , $ path ) ) ; } return static :: createFromFilesystem ( new Filesystem ( new Local ( $ path ) ) ) ; }
Creates a Memory adapter from a filesystem folder.

@param string $path The path to the folder.

@return MemoryAdapter A new memory adapter.
Creates a Memory adapter from a filesystem folder .