Skip to content
Snippets Groups Projects
Commit 70132098 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Correct file extension

parent f3c909fb
Branches
No related tags found
1 merge request!9New: Migrate MetadataExtractionCron to APIv2
Pipeline #1316370 passed
......@@ -147,8 +147,7 @@ public class CoscineMetadataExtractor : IMetadataExtractor
?? throw new NullReferenceException("The resulting stream of the loaded entry is null.");
var tempFile = Path.Combine(Path.GetTempPath(), Path.GetFileName(entry.Path));
using (var fs = new FileStream(tempFile, FileMode.Truncate, FileAccess.Write))
using (var fs = new FileStream(tempFile, FileMode.Create, FileAccess.Write))
{
loadedEntry.CopyTo(fs);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment