Extra checks for empty strings and non-existing paths, use PhysicalFileSystem
This commit is contained in:
@@ -150,6 +150,11 @@ namespace Umbraco.Core.IO
|
||||
return File.Exists(GetFullPath(path));
|
||||
}
|
||||
|
||||
public string GetExtension(string path)
|
||||
{
|
||||
return Path.GetExtension(GetFullPath(path));
|
||||
}
|
||||
|
||||
public string GetRelativePath(string fullPathOrUrl)
|
||||
{
|
||||
var relativePath = fullPathOrUrl
|
||||
|
||||
Reference in New Issue
Block a user