/// <summary> /// Gets the path for a track, without the extension. /// </summary> /// <param name="track">The track.</param> /// <param name="pathFormat">The path format.</param> /// <returns>A formatted path without an extension.</returns> public static string GetBasicPath(this Track track, string pathFormat) { return(StringObjectFormatter.Format(pathFormat, track, o => PathHelpers.CleanFilename(o.ToString()))); }
public static string GetPath(this TrackFile trackFile, string pathFormat, StringObjectFormatter formatter) { var cleanedFilePath = trackFile.Track.GetBasicPath(pathFormat, formatter); return(trackFile.FileType.Append(cleanedFilePath)); }