AP,PP = f(AP,AC),f(PP,PC) if AP==PP then far.Message("it's the same object\n\n1st: "..PP.."\n2nd: "..AP,VC) else local function checksz0(f) local res=false if not win.GetFileInfo(f).FileAttributes:find("d") then local fh=io.open(f,"rb") if fh then res=fh:read(1)==nil fh:close() end end return res end if checksz0(AP) and checksz0(PP) then local APlen = AP:len()-PP:len() far.Message("Both files zero size\n\n1st: "..PP..(APlen>0 and string.rep(" ",APlen) or "").."\n2nd: "..AP..(APlen<0 and string.rep(" ",-APlen) or ""),VC) else if APanel.Left then Plugin.Command(VisComp,'"'..AP..'" "'..PP..'"') else Plugin.Command(VisComp,'"'..PP..'" "'..AP..'"') Keys("Tab") end end end |