mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Fix DirectoryNotFoundException in ImageSaving.cs:CropAllPrints (#1135)
* Fix DirectoryNotFoundException in ImageSaving.cs:CropAllPrints * Update Dotnet/AppApi/Common/ImageSaving.cs Oh yeah this is iterating over all existing. Co-authored-by: Lars Olzem <hackebein@gmail.com> --------- Co-authored-by: Lars Olzem <hackebein@gmail.com>
This commit is contained in:
@@ -177,6 +177,11 @@ namespace VRCX
|
||||
public async Task CropAllPrints(string ugcFolderPath)
|
||||
{
|
||||
var folder = Path.Join(GetUGCPhotoLocation(ugcFolderPath), "Prints");
|
||||
|
||||
if (!Directory.Exists(folder))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var files = Directory.GetFiles(folder, "*.png", SearchOption.AllDirectories);
|
||||
foreach (var file in files)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user