Method StripSegmentName
StripSegmentName(String)
Strips the segment name out of the given file name. If you used SegmentFileName(String, String, String) or FileNameFromGeneration(String, String, Int64) to create your files, then this method simply removes whatever comes before the first '.', or the second '_' (excluding both).
Declaration
public static string StripSegmentName(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
Returns
Type | Description |
---|---|
System.String | the filename with the segment name removed, or the given filename if it does not contain a '.' and '_'. |