public string CreateFilePathFormat(RecordingFilesPathDepth depth) { IEnumerable <string> filePathSegments = AllowedPathSegments.Where(segment => depth.HasFlag(segment)).Select(segment => PathDepthMap[segment]); string filePathFormat = String.Join("/", filePathSegments); return(filePathFormat); }
public void ZipRecordingFiles(IEnumerable <Recording> recordings, Stream stream, RecordingFilesPathDepth depth) { string filePathFormat = CreateFilePathFormat(depth); ZipRecordingFiles(recordings, stream, filePathFormat); }