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))