We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab880d commit bba19f3Copy full SHA for bba19f3
ManagedCode.Storage.Core/Models/LocalFile.cs
@@ -37,7 +37,7 @@ public LocalFile(string? path = null, bool keepAlive = false)
37
Directory.CreateDirectory(directory ?? throw new InvalidOperationException());
38
}
39
40
- if (!File.Exists(FilePath))
+ if (!string.IsNullOrEmpty(FilePath) && !File.Exists(FilePath))
41
{
42
var fs = File.Create(FilePath);
43
fs.Close();
0 commit comments