mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
refactor: cleaned up code.
This commit is contained in:
@@ -385,7 +385,8 @@ namespace ICD.Common.Utils
|
||||
if (!webServerPath.StartsWith(WebServerPath))
|
||||
throw new ArgumentException("Path is not in the web server directory");
|
||||
|
||||
string local = webServerPath.Substring(WebServerPath.Length);
|
||||
string local = webServerPath.Substring(WebServerPath.Length + 1)
|
||||
.Replace('\\', '/');
|
||||
|
||||
return string.Format("{0}/{1}", IcdEnvironment.NetworkAddresses.First(), local);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user