Added filesystem validation to also check for files

This commit is contained in:
Kenneth Skovhede
2015-08-18 22:45:15 +02:00
parent fe1f349f78
commit 3dc91014b8
@@ -77,7 +77,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
{
try
{
if (System.IO.Path.IsPathRooted(path) && System.IO.Directory.Exists(path))
if (System.IO.Path.IsPathRooted(path) && (System.IO.Directory.Exists(path) || System.IO.File.Exists(path)))
{
info.OutputOK();
return;