File tree Expand file tree Collapse file tree
BugSplatDotNetStandard/Utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ public ITempFile TryCreateFromBytes(string fileName, byte[] bytes)
2323 }
2424 catch ( Exception ex )
2525 {
26- // Log or handle the exception as needed
2726 Console . Error . WriteLine ( $ "Error creating temp file: { ex . Message } ") ;
2827 return null ;
2928 }
@@ -37,7 +36,6 @@ public ITempFile CreateFromBytes(string fileName, byte[] bytes)
3736 var tempFolder = CreateTempFolder ( ) ;
3837 var tempFileName = Path . Combine ( tempFolder . FullName , fileName ) ;
3938
40- // TODO BG use something that can work around file locks
4139 File . WriteAllBytes ( tempFileName , bytes ) ;
4240
4341 return new TempFile ( new FileInfo ( tempFileName ) ) ;
@@ -69,6 +67,11 @@ private static DirectoryInfo CreateTempFolder()
6967 return new DirectoryInfo ( tempFileFolder ) ;
7068 }
7169
70+ private static void WriteChunkedBytesToFile ( )
71+ {
72+
73+ }
74+
7275 private static void SafeCreateZipEntry ( ZipArchive zipArchive , FileInfo file )
7376 {
7477 try
You can’t perform that action at this time.
0 commit comments