예제 #1
0
파일: ZipHelper.cs 프로젝트: uxifiit/UXR
        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);
        }
예제 #2
0
파일: ZipHelper.cs 프로젝트: uxifiit/UXR
        public void ZipRecordingFiles(IEnumerable <Recording> recordings, Stream stream, RecordingFilesPathDepth depth)
        {
            string filePathFormat = CreateFilePathFormat(depth);

            ZipRecordingFiles(recordings, stream, filePathFormat);
        }