Changes to 2 folders instead of hyphen

This commit is contained in:
Shannon
2018-06-26 11:58:44 +10:00
parent f0f55156d1
commit b3f4ca13a4

View File

@@ -7,7 +7,7 @@ namespace Umbraco.Core.IO.MediaPathSchemes
/// Implements a two-guids media path scheme.
/// </summary>
/// <remarks>
/// <para>Path is "{itemGuid}-{propertyGuid}/{filename}".</para>
/// <para>Path is "{itemGuid}/{propertyGuid}/{filename}".</para>
/// </remarks>
public class TwoGuidsMediaPathScheme : IMediaPathScheme
{
@@ -18,8 +18,7 @@ namespace Umbraco.Core.IO.MediaPathSchemes
/// <inheritdoc />
public string GetFilePath(Guid itemGuid, Guid propertyGuid, string filename, string previous = null)
{
var directory = itemGuid.ToString("N") + "-" + propertyGuid.ToString("N");
return Path.Combine(directory, filename).Replace('\\', '/');
return Path.Combine(itemGuid.ToString("N"), propertyGuid.ToString("N"), filename).Replace('\\', '/');
}
/// <inheritdoc />