Skip to content

Commit ab4d41d

Browse files
authored
Update ResourcesConfigManager.cs
Avoid GenerateResourcesConfig error 存在重名文件!when folder have Mac OS hidden file: .DS_Store
1 parent b95206e commit ab4d41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Script/Core/ResourceLoad/ResourcesConfigManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static void RecursionAddResouces(DataTable data,string path)
181181
{
182182
string fileName = FileTool.RemoveExpandName(FileTool.GetFileNameByPath(files[i]));
183183
string relativePath = files[i].Substring(direIndex);
184-
if (relativePath.EndsWith(".meta"))
184+
if (relativePath.EndsWith(".meta") || relativePath.EndsWith(".DS_Store"))
185185
continue;
186186
else
187187
{

0 commit comments

Comments
 (0)