// 例如:AssetBundlerServer/FenBao/Win/version_1/package0_i public static string GetFenBaoPath(ABPathInfo pathInfo) { string assetPath = AssetsCommon.GetAssetPath(); string assetFolderName = PathConstant.FolderName.FEN_BAO; string osFolderName = AssetsCommon.GetPlatformFolderName(pathInfo.OsType); string versionFolderName = PathConstant.FolderName.GetFenBaoVersion(pathInfo.Version); if (osFolderName == string.Empty) { Debug.LogError("平台文件夹名称获取错误:" + pathInfo.OsType); return(string.Empty); } List <string> paths = new List <string>() { PathConstant.SERVER_FOLDER_NAME, assetFolderName, osFolderName, versionFolderName }; string path = AssetsCommon.BuildPath(assetPath, paths); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }
public static string GetVersionListPath(ePlatformType osType) { string assetPath = AssetsCommon.GetAssetPath(); string assetFolderName = PathConstant.FolderName.FILE_MANIFEST; string osFolderName = AssetsCommon.GetPlatformFolderName(osType); List <string> paths = new List <string>() { PathConstant.SERVER_FOLDER_NAME, assetFolderName, osFolderName }; string path = AssetsCommon.BuildPath(assetPath, paths); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }