Exemplo n.º 1
0
    public void update()
    {
        if (multipleView == Multiple)
        {
            return;
        }
        multipleView = Multiple;
        subBundleInfos.Clear();
        if (Multiple)
        {
            List <string> subFolds = FilePathTools.GetSubFoldPaths(FilePathTools.GetFullpathRelativeExport(Path));
            foreach (var subItem in subFolds)
            {
                string shortPath = FilePathTools.GetShortPathRelativeExport(subItem);
                subBundleInfos.Add(new BundleInfo(shortPath, this.BaseBundle, this.releaseMode));
            }

            List <string> filePaths = FilePathTools.GetFilePaths(FilePathTools.GetFullpathRelativeExport(Path));
            foreach (var filePath in filePaths)
            {
                string shortPath = FilePathTools.GetShortPathRelativeExport(filePath);
                subBundleInfos.Add(new BundleInfo(shortPath, this.BaseBundle, this.releaseMode));
            }
        }
    }