From 8a9d0271a38534692d1e6e1c7ed4cec58c36fc85 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 2 Oct 2023 13:04:21 +0200 Subject: [PATCH] =?UTF-8?q?Add=20ignoring=20=E2=80=99.DS=5FStore=E2=80=99?= =?UTF-8?q?=20files=20in=20Content=20on=20macOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Editor/Modules/ContentDatabaseModule.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Editor/Modules/ContentDatabaseModule.cs b/Source/Editor/Modules/ContentDatabaseModule.cs index 143352421..c35b010c7 100644 --- a/Source/Editor/Modules/ContentDatabaseModule.cs +++ b/Source/Editor/Modules/ContentDatabaseModule.cs @@ -931,6 +931,11 @@ namespace FlaxEditor.Modules // Check if node already has that element (skip during init when we want to walk project dir very fast) if (_isDuringFastSetup || !parent.Folder.ContainsChild(path)) { +#if PLATFORM_MAC + if (path.EndsWith(".DS_Store", StringComparison.Ordinal)) + continue; +#endif + // Create file item ContentItem item; if (path.EndsWith(".cs")) @@ -972,6 +977,11 @@ namespace FlaxEditor.Modules // Check if node already has that element (skip during init when we want to walk project dir very fast) if (_isDuringFastSetup || !parent.Folder.ContainsChild(path)) { +#if PLATFORM_MAC + if (path.EndsWith(".DS_Store", StringComparison.Ordinal)) + continue; +#endif + // Create file item ContentItem item = null; if (FlaxEngine.Content.GetAssetInfo(path, out var assetInfo))