public bool reveal(ch.cyberduck.core.Local l)
 {
     if (l.exists())
     {
         string        path      = l.getAbsolute();
         DirectoryInfo d         = new DirectoryInfo(path);
         string        parameter = "";
         if (d.Parent != null)
         {
             parameter = "/select,";
         }
         return(ApplicationLauncherFactory.get()
                .open(new Application("explorer.exe", null), parameter + path));
     }
     return(false);
 }
 public void trash(ch.cyberduck.core.Local file)
 {
     if (file.exists())
     {
         try {
             if (file.isFile())
             {
                 FileSystem.DeleteFile(file.getAbsolute(), UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin);
             }
             else if (file.isDirectory())
             {
                 FileSystem.DeleteDirectory(file.getAbsolute(), UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin);
             }
         }
         catch (System.Exception e) {
             throw new LocalAccessDeniedException(e.Message);
         }
     }
 }