BloomTests.Book.BookStorageTests.ConvertToNetworkPath C# (CSharp) Метод

ConvertToNetworkPath() приватный Метод

private ConvertToNetworkPath ( string drivePath ) : string
drivePath string
Результат string
        private string ConvertToNetworkPath(string drivePath)
        {
            string driveLetter = Directory.GetDirectoryRoot(drivePath);
            return drivePath.Replace(driveLetter, "//localhost/" + driveLetter.Replace(":\\", "") + "$/");
        }