* @class elFinder command "opendir"
elFinder.prototype.commands.opendir = function() {
this.alwaysEnabled = true;
this.getstate = function() {
var sel = this.fm.selected(),
wz = this.fm.getUI('workzone');
return wz.hasClass('elfinder-search-result')? 0 : -1;
this.exec = function(hashes) {
files = this.files(hashes),
if (!cnt || !files[0].phash) {
fm.trigger('searchend', { noupdate: true });
data : {cmd : 'open', target : hash},
notify : {type : 'open', cnt : 1, hideCnt : true},