static bool TryCreateDirectoryLink(string workPath, string targetPath) { if (!Directory.Exists(workPath)) { return(false); } FileSystemHelper.Create(workPath, targetPath); return(true); }
static void CreateDirectoryLink(string workPath, string targetPath) { try { FileSystemHelper.Create(workPath, targetPath); } catch (Exception e) { ServiceLocator.Current.GetInstance <IExceptionService>().Send(e, new Dictionary <string, string> { { "WorkPath", workPath }, { "TargetPath", targetPath }, }); } }