public static IsNetworkPath ( String path ) : bool | ||
path | String | |
return | bool |
public static bool IsNetworkPath(String path)
{
if (path.StartsWith(@"\\"))
return true;
var dir = new DirectoryInfo(path);
var drive = new DriveInfo(dir.Root.ToString());
return drive.DriveType == DriveType.Network;
}