Bug?: search in FS-plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Bug?: search in FS-plugin

Post by *Alextp »

Hello All,

Picture (use download managers)
Is this a bug of my FS-plugin or bug in TC 6.53? I mean nested folders, see picture. If I go to that site by hand, I cannot see that nested folders, of course.

And - this happens only on _first_ plugin search.
It not happens: when I select this site and do "Only search in selected dirs".
Last edited by Alextp on 2005-10-09, 14:08 UTC, edited 1 time in total.
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

Not confirmed here. Windows XP SP2.

What I do find is that it seems to only find folders in the top level. It doesn't go down into subfolders to find for example images.
Registered user #92105
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Botak
Please try with version 1.1, because with v1.0 it not happens.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

No problem here with XP SP2 TC 6.53 and

IE 6.0.2900.2180xpsp_sp2_dgr.050301-1519.

Maybe a special site that causes the error?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

2Alex
I downloaded 1.1 and still do not see the error.

My other remark still stands, it does not search subfolders. This means, when I look for a file, it won't be found :(
Registered user #92105
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Botak wrote:My other remark still stands, it does not search subfolders.
Thanks, I found the bug!

When FsFindFirst called in browse mode, I get path='\domain'.
But when its called from search, I get path='\domain\'.
I don't expect last '\', and fill FindData with random data.

2Ghisler
You should write in FsFindFirst description that path may end with '\', when search is performed!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm sorry for the problems, this is something which even I didn't know...
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

You may also disable adding '\' to the RemotePath, when search is performed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is problematic because then some plugins may stop working which expect this behaviour, or work only in TC 7 and not older versions...
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Christian, another question: why from search results (in plugin panel of my plugin, link above) I cannot jump to found files?
But I _can_ jump to found directories. Is this plugin or TC issue?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work - at least it works here with the plugins I tried. Perhaps you need to check in a debugger what happens in your plugin.
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

I observed a kind of buggy behaviour: It is not possible to jump to files or directories (using the 'Go to file' button) if the path to this file or dir contains a forward slash '/'. Such a '/' is unfortunately inevitable by my MKS FS plugin.

tbeu
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - I will check that. Maybe it's because TC looks for / and \ as name separators here.
Author of Total Commander
https://www.ghisler.com
Post Reply