diff options
author | vnugent <public@vaughnnugent.com> | 2023-12-08 20:52:04 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-12-08 20:52:04 -0500 |
commit | b564708f29cf8a709c3e3d981477b2ec8440673e (patch) | |
tree | b5eb4b728111fb7746b08a0b6231deab63a2960f /back-end/src/Storage/MinioClientManager.cs | |
parent | fdf78dd5bf25f345cc8419cc547cdbafaf54ae86 (diff) |
patch and close issue #2 for empty/non existent index files
Diffstat (limited to 'back-end/src/Storage/MinioClientManager.cs')
-rw-r--r-- | back-end/src/Storage/MinioClientManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/back-end/src/Storage/MinioClientManager.cs b/back-end/src/Storage/MinioClientManager.cs index a817ba6..c7867b2 100644 --- a/back-end/src/Storage/MinioClientManager.cs +++ b/back-end/src/Storage/MinioClientManager.cs @@ -123,13 +123,13 @@ namespace Content.Publishing.Blog.Admin.Storage { //Get the post content file ObjectStat stat = await Client.GetObjectAsync(args, cancellation); + return stat.Size; } catch (Minio.Exceptions.ObjectNotFoundException) { //File not found - return -1; + return -1L; } - return output.Position; } } } |