Skip to content

Commit

Permalink
[Sophon] Ensure directory creation on target file
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-nyan committed Jan 5, 2025
1 parent 4f44fd0 commit 41f9174
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ await Task.Run(() =>
// Get the original file path, ensure the existing file is not read only,
// then move the temp file to the original file path
var origFilePath = new FileInfo(assetFullPath)
.EnsureCreationOfDirectory()
.EnsureNoReadOnly();

// Move the thing
Expand Down

0 comments on commit 41f9174

Please sign in to comment.