Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .ci/unit-tests/File_Toolkit_Tests/Adapter/PushPullTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand All @@ -24,6 +24,7 @@
using BH.Adapter.File;
using BH.oM.Structure.Elements;
using System.Reflection;
using System.ComponentModel;
using FluentAssertions;
using Newtonsoft.Json;

Expand All @@ -33,19 +34,22 @@ public class PushPullTests
{
string randomTestFilePath = "";

[Description("Sets up a random test file path before each test.")]
[SetUp]
public void SetupRandomTestFilePath()
{
randomTestFilePath = Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString() + ".json");
}

[Description("Deletes the test file after each test.")]
[TearDown]
public void DeleteRandomTestFile()
{
if (File.Exists(randomTestFilePath))
File.Delete(randomTestFilePath);
}

[Description("Tests pushing and pulling a Bar object via the FileAdapter.")]
[Test]
public void Bar()
{
Expand All @@ -63,6 +67,7 @@ public void Bar()
fileContent.Should().BeEquivalentTo(objectsToPush);
}

[Description("Tests pushing and pulling a Bar object via the FileAdapter with formatted JSON.")]
[Test]
public void Bar_FormattedJson()
{
Expand Down Expand Up @@ -98,3 +103,4 @@ private static void OverwriteWithFormattedJson(string filepath)
}
}


Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand All @@ -24,28 +24,32 @@
using BH.Adapter.File;
using BH.oM.Structure.Elements;
using System.Reflection;
using System.ComponentModel;
using FluentAssertions;
using Newtonsoft.Json;

namespace BH.Tests.Engine.Compute
{
public class Compute
public class ReadFromJsonFile
{
string randomTestFilePath = "";

[Description("Sets up a random test file path before each test.")]
[SetUp]
public void SetupRandomTestFilePath()
{
randomTestFilePath = Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString() + ".json");
}

[Description("Deletes the test file after each test.")]
[TearDown]
public void DeleteRandomTestFile()
{
if (File.Exists(randomTestFilePath))
File.Delete(randomTestFilePath);
}

[Description("Tests reading a Bar object back from a JSON file pushed by the FileAdapter.")]
[Test]
public void Bar()
{
Expand All @@ -63,6 +67,7 @@ public void Bar()
fileContent.Should().BeEquivalentTo(objectsToPush);
}

[Description("Tests reading a Bar object back from a formatted JSON file pushed by the FileAdapter.")]
[Test]
public void Bar_FormattedJson()
{
Expand Down Expand Up @@ -98,3 +103,4 @@ private static void OverwriteWithFormattedJson(string filepath)
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<IsPackable>false</IsPackable>
<Description>https://github.com/BHoM/File_Toolkit</Description>
<FileVersion>9.0.0.0</FileVersion>
<FileVersion>9.1.0.0</FileVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<Configurations>Debug;Release;Test</Configurations>
</PropertyGroup>
Expand Down
3 changes: 2 additions & 1 deletion File_Adapter/AdapterActions/Execute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -167,3 +167,4 @@ private Output<List<object>, bool> Copy(string source, string target, bool overw




3 changes: 2 additions & 1 deletion File_Adapter/AdapterActions/Pull.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -97,3 +97,4 @@ public override IEnumerable<object> Pull(IRequest request, PullType pullType = P




3 changes: 2 additions & 1 deletion File_Adapter/AdapterActions/Push.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -180,3 +180,4 @@ public override List<object> Push(IEnumerable<object> objects, string tag = "",




3 changes: 2 additions & 1 deletion File_Adapter/AdapterActions/Remove.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -94,3 +94,4 @@ public override int Remove(IRequest request, ActionConfig actionConfig = null)




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Create/Create.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -75,3 +75,4 @@ public IFSContainer Create(IFSContainer fileOrDir, PushType pushType, PushConfig




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Create/CreateDirectory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -126,3 +126,4 @@ public IFSContainer CreateDirectory(FSDirectory dir, PushType pushType, PushConf




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Create/CreateJson.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -299,3 +299,4 @@ public static void WriteJsonFile(string fullPath, string json, bool replaceConte




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Delete/Delete.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -138,3 +138,4 @@ public static bool DeleteDirectory(string directoryPath, bool recordNote = false




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Read/Read.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -112,3 +112,4 @@ public IEnumerable<object> Read(DirectoryRequest dr, PullConfig pullConfig)




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Read/ReadFile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -116,3 +116,4 @@ public static oM.Adapters.File.FSDirectory ReadDirectory(string fullPath, bool i




3 changes: 2 additions & 1 deletion File_Adapter/CRUD/Read/ReadFileContent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -55,10 +55,10 @@
if (!output.Any())
BH.Engine.Base.Compute.RecordWarning($"No content could be pulled for {fileFullPath}. Make sure it's not protected or empty.");

return output
.Where(o => fcr.Types.Count > 0 ? fcr.Types.Any(t => t == o.GetType()) : true)
.Where(o => fcr.FragmentTypes.Count > 0 ? (o as BHoMObject)?.Fragments.Select(f => f.GetType()).Intersect(fcr.FragmentTypes).Any() ?? false : true)
.Where(o => fcr.CustomDataKeys.Count > 0 ? (o as BHoMObject)?.CustomData.Keys.Intersect(fcr.CustomDataKeys).Any() ?? false : true);

Check warning on line 61 in File_Adapter/CRUD/Read/ReadFileContent.cs

View check run for this annotation

BHoMBot-CI / beta-code-compliance

File_Adapter/CRUD/Read/ReadFileContent.cs#L58-L61

The use of CustomData within the code is discouraged except in circumstances where volatile data is being used. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsUsingCustomData
}

/***************************************************/
Expand Down Expand Up @@ -163,3 +163,4 @@




3 changes: 2 additions & 1 deletion File_Adapter/FileAdapter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -39,7 +39,7 @@
/***************************************************/

[Description("Initialises the File_Adapter without a target location. Allows to target multiple files. Target file locations will have to be specified in the Adapter Action.")]
public FileAdapter()

Check warning on line 42 in File_Adapter/FileAdapter.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Adapter/FileAdapter.cs#L42

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
// By default, if they exist already, the files to be created are wiped out and then re-created.
this.m_AdapterSettings.DefaultPushType = oM.Adapter.PushType.DeleteThenCreate;
Expand All @@ -49,7 +49,7 @@
"\nWhen Pushing, this is used for pushing objects that are not BHoM `File` or `Directory`, like generic objects." +
"\nWhen Pulling, if no request is specified, a FileContentRequest is automatically generated with this location.")]
[Input("targetLocation", "FilePath, including file extension.")]
public FileAdapter(string targetLocation)

Check warning on line 52 in File_Adapter/FileAdapter.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Adapter/FileAdapter.cs#L52

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
Init(targetLocation);
}
Expand All @@ -59,7 +59,7 @@
"\nWhen Pulling, if no request is specified, a FileContentRequest is automatically generated with this location.")]
[Input("folder", "Folder path.")]
[Input("fileName", "File name, including file extension.")]
public FileAdapter(string folder, string fileName)

Check warning on line 62 in File_Adapter/FileAdapter.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Adapter/FileAdapter.cs#L62

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (folder?.Count() > 2 && folder?.ElementAt(1) != ':')
folder = Path.Combine(@"C:\ProgramData\BHoM\DataSets", folder);
Expand Down Expand Up @@ -138,3 +138,4 @@




2 changes: 1 addition & 1 deletion File_Adapter/File_Adapter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Description>https://github.com/BHoM/File_Toolkit</Description>
<FileVersion>9.0.0.0</FileVersion>
<FileVersion>9.1.0.0</FileVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RootNamespace>BH.Adapter.File</RootNamespace>
Expand Down
3 changes: 2 additions & 1 deletion File_Adapter/Methods/AddExtraData.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -87,3 +87,4 @@ private static void AddContent(oM.Adapters.File.FSDirectory retrievedDir)




3 changes: 2 additions & 1 deletion File_Adapter/Methods/CreateFSFile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -67,3 +67,4 @@ public static FSFile CreateFSFile(FSDirectory parentDirectory, string fullFileNa




3 changes: 2 additions & 1 deletion File_Adapter/Methods/WalkDirectories.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -174,3 +174,4 @@ private bool MaxItemsReached(int maxFiles, int retrievedFilesCount, int maxDirs,




3 changes: 2 additions & 1 deletion File_Engine/Compute/CreateFolders.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -34,7 +34,7 @@
{
[Description("Creates Directories and subdirectories for the specified path, if they do not exist. " +
"E.g. `C:/folder2/folder1` will create both folder2 and folder1 if they do not exist.")]
public static void CreateFolders(string parentFolder, bool active = false)

Check warning on line 37 in File_Engine/Compute/CreateFolders.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Compute/CreateFolders.cs#L37

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent
{
if (active)
System.IO.Directory.CreateDirectory(parentFolder);
Expand All @@ -46,3 +46,4 @@




3 changes: 2 additions & 1 deletion File_Engine/Compute/DirectorySize.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -33,7 +33,7 @@
public static partial class Compute
{
[Description("Returns the size of the directory. The calculation might take some time.")]
public static long DirectorySize(BH.oM.Adapters.File.FSDirectory directory)

Check warning on line 36 in File_Engine/Compute/DirectorySize.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Compute/DirectorySize.cs#L36

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
return DirectorySize(directory.FromFiling());
}
Expand Down Expand Up @@ -62,3 +62,4 @@




3 changes: 2 additions & 1 deletion File_Engine/Compute/NewFilenameIfExists.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -34,7 +34,7 @@
{
[Description("If the targetPath points to a file that exists, return the same filepath with appended `- Copy (i)`, " +
"where `i` is the first index pointing to a non existing file.")]
public static string NewFilenameIfExists(string targetPath)

Check warning on line 37 in File_Engine/Compute/NewFilenameIfExists.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Compute/NewFilenameIfExists.cs#L37

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
int i = 0;
do
Expand Down Expand Up @@ -73,3 +73,4 @@




3 changes: 2 additions & 1 deletion File_Engine/Compute/ReadFromJsonFile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -44,7 +44,7 @@
[Description("Read a JSON-serialised file and output any data or object included in it.")]
[Input("filePath", "Path to the file.")]
[Input("active", "Boolean used to trigger the function.")]
public static List<object> ReadFromJsonFile(string filePath, bool active = false)

Check warning on line 47 in File_Engine/Compute/ReadFromJsonFile.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Compute/ReadFromJsonFile.cs#L47

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (!active)
return new List<object>();
Expand Down Expand Up @@ -91,3 +91,4 @@
}



3 changes: 2 additions & 1 deletion File_Engine/Compute/WriteToJsonFile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -45,7 +45,7 @@
[Input("filePath", "Path to the file.")]
[Input("replace", "If the file exists, you need to set this to true in order to allow overwriting it.")]
[Input("active", "Boolean used to trigger the function.")]
public static bool WriteToJsonFile(List<object> objects, string filePath, bool replace = false, bool active = false)

Check warning on line 48 in File_Engine/Compute/WriteToJsonFile.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Compute/WriteToJsonFile.cs#L48

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (!active || objects == null)
return false;
Expand Down Expand Up @@ -141,3 +141,4 @@




3 changes: 2 additions & 1 deletion File_Engine/Convert/FromFiling/FSDirectory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -40,7 +40,7 @@

[Description("Converts the provided Directory into a System.IO.DirectoryInfo." +
"\nAny `Content` property is lost in this conversion.")]
public static DirectoryInfo FromFiling(this oM.Adapters.File.FSDirectory directory)

Check warning on line 43 in File_Engine/Convert/FromFiling/FSDirectory.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

File_Engine/Convert/FromFiling/FSDirectory.cs#L43

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
return new DirectoryInfo(directory.IFullPath());
}
Expand All @@ -53,3 +53,4 @@




Loading