src/S3/Transfer.php
private function getS3Args($path)
    {
        $parts = explode('/', str_replace('s3://', '', $path), 2);
        $args = ['Bucket' => $parts[0]];
        if (isset($parts[1])) {
            $args['Key'] = $parts[1];
        }

        return $args;
    }
private function getS3Args($path)
    {
        $parts = explode('/', str_replace('s3://', '', $path), 2);
        $args = ['Bucket' => $parts[0]];
        if (isset($parts[1])) {
            $args['Key'] = $parts[1];
        }

        return $args;
    }
private function getS3Args ( $ path ) { $ parts = explode ( '/' , str_replace ( 's3://' , '' , $ path ) , 2 ) ; $ args = [ 'Bucket' => $ parts [ 0 ] ] ; if ( isset ( $ parts [ 1 ] ) ) { $ args [ 'Key' ] = $ parts [ 1 ] ; } return $ args ; }
Creates an array that contains Bucket and Key by parsing the filename.

@param string $path Path to parse.

@return array
Creates an array that contains Bucket and Key by parsing the filename .