mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:16:30 +00:00
62623b7123
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
12 lines
322 B
C#
12 lines
322 B
C#
using System.IO;
|
|
|
|
namespace Azaion.Common.Extensions;
|
|
|
|
public static class StringExtensions
|
|
{
|
|
public static string ToFName(this string path) =>
|
|
Path.GetFileNameWithoutExtension(path).Replace(" ", "");
|
|
|
|
public static string ToTimeName(this string fName, TimeSpan? ts) =>
|
|
$"{fName}_{ts:hmmssf}";
|
|
} |