Add ignoring ’.DS_Store’ files in Content on macOS
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user