Amazon_S3_And_CloudFront::get_file_prefix PHP Method

get_file_prefix() public method

Get the file prefix
public get_file_prefix ( null | string $time = null ) : string
$time null | string
return string
    function get_file_prefix($time = null)
    {
        $prefix = ltrim(trailingslashit($this->get_object_prefix()), '/');
        $prefix .= ltrim(trailingslashit($this->get_dynamic_prefix($time)), '/');
        if ($this->get_setting('object-versioning')) {
            $prefix .= $this->get_object_version_string();
        }
        return $prefix;
    }
Amazon_S3_And_CloudFront