コード例 #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);
        }