Example #1
0
        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);
        }
Example #2
0
        public void ZipRecordingFiles(IEnumerable <Recording> recordings, Stream stream, RecordingFilesPathDepth depth)
        {
            string filePathFormat = CreateFilePathFormat(depth);

            ZipRecordingFiles(recordings, stream, filePathFormat);
        }