public static CreateSymlink ( string path, string target ) : bool | ||
path | string | |
target | string | |
return | bool |
public static bool Create(string path, string target, bool clearExisting = false) { if (clearExisting) { try { if (Exists(path)) { Delete(path); } else if (File.Exists(path)) { File.Delete(path); } else if (Directory.Exists(path)) { Directory.Delete(path); } } catch { Printer.PrintError("Could not create symlink {0}, it is obstructed!", path); return(false); } } if (SvnIntegration.AppliesTo(path)) { return(SvnIntegration.CreateSymlink(path, target)); } if (MultiArchPInvoke.IsRunningOnMono) { return(SymlinkMono.CreateSymlink(path, target)); } else { return(SymlinkWin32.CreateSymlink(path, target)); } }