pull/497/head
何冠峰 2025-02-27 17:13:49 +08:00
parent 7c561ce254
commit 3fea98ce4c
1 changed files with 2 additions and 3 deletions

View File

@ -18,9 +18,8 @@ namespace YooAsset
YooLogger.Log("Begin to create catalog file !"); YooLogger.Log("Begin to create catalog file !");
string savePath = YooAssetSettingsData.GetYooResourcesFullPath(); string savePath = YooAssetSettingsData.GetYooResourcesFullPath();
DirectoryInfo saveDirectory = new DirectoryInfo(savePath); if (UnityEditor.AssetDatabase.DeleteAsset(savePath))
if (saveDirectory.Exists) UnityEditor.AssetDatabase.Refresh();
saveDirectory.Delete(true);
string rootPath = YooAssetSettingsData.GetYooDefaultBuildinRoot(); string rootPath = YooAssetSettingsData.GetYooDefaultBuildinRoot();
DirectoryInfo rootDirectory = new DirectoryInfo(rootPath); DirectoryInfo rootDirectory = new DirectoryInfo(rootPath);