Skip to content
Open
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
4 changes: 3 additions & 1 deletion File_Engine/Compute/NewFilenameIfExists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

using System;
using System.Collections.Generic;
using BH.oM.Base.Attributes;
using System.ComponentModel;
using System.IO;
using System.Linq;
Expand All @@ -34,7 +35,8 @@ public static partial class Compute
{
[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)
[PreviousVersion("9.3", "BH.Engine.Adapters.File.Compute.NewFilenameIfExists(System.String)")]
public static string NewFilenameIfExists(string targetPath, bool skipTrailingNumber = false)
{
int i = 0;
do
Expand Down
Loading