using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using System.Linq;
using System;
using System.IO;
namespace AssetBundleHubEditor
{
///
/// AssetGraphのLoaderを参考に作成
/// 特定のパスからファイルを抽出して返す
///
public class GroupByFilePath
{
///
/// DirPathをキーとしてグループ化
///
/// key: DirPath value: filePathのリスト
public Dictionary> Run(List filePaths)
{
return filePaths.GroupBy(x => Path.GetDirectoryName(x))
.ToDictionary(group => group.Key, group => group.ToList());
}
}
}