Closed ronaldbarendse closed 1 month ago
This fixes https://github.com/umbraco/Umbraco.StorageProviders/issues/40 by catching the RequestFailedException, checking whether it was thrown because the blob doesn't exist and returning similar values as the default CMS PhysicalFileSystem does:
RequestFailedException
PhysicalFileSystem
GetLastModified()
GetCreated()
FileSystemInfo.LastWriteTimeUtc
FileSystemInfo.CreationTimeUtc
GetSize()
PhysicalFileSystem.GetSize()
This fixes https://github.com/umbraco/Umbraco.StorageProviders/issues/40 by catching the
RequestFailedException
, checking whether it was thrown because the blob doesn't exist and returning similar values as the default CMSPhysicalFileSystem
does:GetLastModified()
andGetCreated()
return 1-1-1601 00:00:00 +00:00, as that's whatFileSystemInfo.LastWriteTimeUtc
andFileSystemInfo.CreationTimeUtc
do;GetSize()
returns -1, as that's whatPhysicalFileSystem.GetSize()
does.