bug fixes (#757)

* fix docker blur hash generation

* scanner async cleanup

* catch and log some unauthorized exception errors
This commit is contained in:
Jason Dove
2022-04-24 13:43:06 -05:00
committed by GitHub
parent 558e8acf5f
commit d879ce0d0d
10 changed files with 481 additions and 488 deletions
+12
View File
@@ -47,6 +47,10 @@ public class LocalFileSystem : ILocalFileSystem
{
return Directory.EnumerateDirectories(folder);
}
catch (UnauthorizedAccessException)
{
_logger.LogWarning("Unauthorized access exception listing subdirectories of folder {Folder}", folder);
}
catch (Exception ex)
{
// do nothing
@@ -65,6 +69,10 @@ public class LocalFileSystem : ILocalFileSystem
{
return Directory.EnumerateFiles(folder, "*", SearchOption.TopDirectoryOnly);
}
catch (UnauthorizedAccessException)
{
_logger.LogWarning("Unauthorized access exception listing files in folder {Folder}", folder);
}
catch (Exception ex)
{
// do nothing
@@ -83,6 +91,10 @@ public class LocalFileSystem : ILocalFileSystem
{
return Directory.EnumerateFiles(folder, searchPattern, SearchOption.TopDirectoryOnly);
}
catch (UnauthorizedAccessException)
{
_logger.LogWarning("Unauthorized access exception listing files in folder {Folder}", folder);
}
catch (Exception ex)
{
// do nothing