<commit_before>﻿using System;
using System.IO;

namespace Umbraco.Core.IO.MediaPathSchemes
{
    /// <summary>
    /// Implements a two-guids media path scheme.
    /// </summary>
    /// <remarks>
    /// <para>Path is "{itemGuid}-{propertyGuid}/{filename}".</para>
    /// </remarks>
    public class TwoGuidsMediaPathScheme : IMediaPathScheme
    {
        /// <inheritdoc />
        public void Initialize(IFileSystem filesystem)
        { }

        /// <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('\\', '/');
        }

        /// <inheritdoc />
        public string GetDeleteDirectory(string filepath)
        {
            return Path.GetDirectoryName(filepath);
        }
    }
}<commit_msg>Changes to 2 folders instead of hyphen<commit_after>﻿using System;
using System.IO;

namespace Umbraco.Core.IO.MediaPathSchemes
{
    /// <summary>
    /// Implements a two-guids media path scheme.
    /// </summary>
    /// <remarks>
    /// <para>Path is "{itemGuid}/{propertyGuid}/{filename}".</para>
    /// </remarks>
    public class TwoGuidsMediaPathScheme : IMediaPathScheme
    {
        /// <inheritdoc />
        public void Initialize(IFileSystem filesystem)
        { }

        /// <inheritdoc />
        public string GetFilePath(Guid itemGuid, Guid propertyGuid, string filename, string previous = null)
        {
            return Path.Combine(itemGuid.ToString("N"), propertyGuid.ToString("N"), filename).Replace('\\', '/');
        }

        /// <inheritdoc />
        public string GetDeleteDirectory(string filepath)
        {
            return Path.GetDirectoryName(filepath);
        }
    }
}
{'fraction_non_alphanumeric': 0.13878429263044648, 'fraction_numerical': 0.0005379236148466917, 'mean_word_length': 2.2124352331606216, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1692930', 'n_tokens_mistral': 517, 'n_tokens_neox': 509, 'n_words': 111}