webdav portal add owa put relative support
This commit is contained in:
parent
a6b57486bd
commit
2968fbb967
16 changed files with 199 additions and 20 deletions
|
@ -226,6 +226,26 @@ namespace WebsitePanel.WebDav.Core.Managers
|
|||
}
|
||||
}
|
||||
|
||||
public bool FileExist(string path)
|
||||
{
|
||||
try
|
||||
{
|
||||
string folder = GetFileFolder(path);
|
||||
|
||||
var resourceName = GetResourceName(path);
|
||||
|
||||
OpenFolder(folder);
|
||||
|
||||
var resource = _currentFolder.GetResource(resourceName);
|
||||
|
||||
return resource != null;
|
||||
}
|
||||
catch (InvalidOperationException exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public string GetFileUrl(string path)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue