Skip to content

Commit bba19f3

Browse files
committed
refactoring
1 parent fab880d commit bba19f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ManagedCode.Storage.Core/Models/LocalFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public LocalFile(string? path = null, bool keepAlive = false)
3737
Directory.CreateDirectory(directory ?? throw new InvalidOperationException());
3838
}
3939

40-
if (!File.Exists(FilePath))
40+
if (!string.IsNullOrEmpty(FilePath) && !File.Exists(FilePath))
4141
{
4242
var fs = File.Create(FilePath);
4343
fs.Close();

0 commit comments

Comments
 (0)