aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/slskd/Common/CommonExtensions.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs
index 8e6d5603..33e59382 100644
--- a/src/slskd/Common/CommonExtensions.cs
+++ b/src/slskd/Common/CommonExtensions.cs
@@ -390,6 +390,7 @@ namespace slskd
/// <param name="remoteFilename">The fully qualified remote filename to convert.</param>
/// <param name="baseDirectory">The base directory for the local filename.</param>
/// <returns>The converted filename.</returns>
+ [Obsolete("Find something more intelligent to do instead of this")]
public static string ToLocalFilename(this string remoteFilename, string baseDirectory)
{
return Path.Combine(baseDirectory, remoteFilename.ToLocalRelativeFilename());
@@ -445,6 +446,7 @@ namespace slskd
/// </summary>
/// <param name="remoteFilename">The fully qualified remote filename to convert.</param>
/// <returns>The converted filename.</returns>
+ [Obsolete("Find something more intelligent to do instead of this")]
public static string ToLocalRelativeFilename(this string remoteFilename)
{
if (string.IsNullOrWhiteSpace(remoteFilename))