Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Mar 27, 2024
1 parent b2c6404 commit a3f6469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public Task<FileSpec> GetFileInfoAsync(string path)
try
{
var file = _client.Get(normalizedPath);
if (file.IsDirectory)
return Task.FromResult<FileSpec>(null);

return Task.FromResult(new FileSpec
{
Path = normalizedPath,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using Foundatio.Storage;
using Foundatio.Tests.Storage;
Expand Down

0 comments on commit a3f6469

Please sign in to comment.