Search for files misses lots of subdirectories

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Search for files misses lots of subdirectories

Post by alan65 »

XYplorer version: 28.20.0100
Windows 11 Pro
Screen Scaling Percentage: 250% on my laptop, 125% on my desktop, both have 4K resolution.

When I search for a file from the root directory \C:, XYplorer doesn't search all subfolders, even when the "Include subfolders" option is checkmarked. In particular, it doesn't search in my DropBox directory, which is nested inside my user directory. This happens on both of my computers. I have attached two screenshot demonstrating how search doesn't find the copy of the file named "defaultSettings.yaml" in my DropBox folder when searching in the root directory C:\. But XYplorer does find the another copy of the file if I search from the base directory C:\Users\David\DropBox. The effect seems to be independent of the filename or pattern used in the search.
To see the attached files, you need to log into the forum.

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

Inside of XYplorer the icon for the DropBox folder has a tiny arrow in the lower left corner suggesting that the folder might be a symbolic link. The icon does not show up that way in Windows Explorer or several other file browsers I have installed on my computer. If I open a command window using cmd.exe and list the content of C:\User\David with dir, the OS reports that DropBox is a normal <dir>. Using the setting, "Follow junctions" in the settings for "Find Files & Branch View" does not solve the problem.

highend
Posts: 14932
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for files misses lots of subdirectories

Post by highend »

Show the output after executing this script:

Code: Select all

$path = "C:\Users\David\DropBox";
    text property("#ResolveJunctionsAll", $path) . <crlf> . property("#LinkTarget", $path);
What happens if you tick [x] Follow folder links
and search again (in C:\)?
One of my scripts helped you out? Please donate via Paypal

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

Checking the box in follow folder links does not solve the problems, but it does produce duplicates when searching from the root C:\, but the search still misses anything in the DropBox folder.

How should I run the script you suggested?

highend
Posts: 14932
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for files misses lots of subdirectories

Post by highend »

Menu - Scripting - Run Script...?
One of my scripts helped you out? Please donate via Paypal

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

Running the script gives the output
C:\Users\David\DropBox

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

The longer script:
$path = "C:\Users\David\DropBox";

// Resolve the ultimate physical path
$resolved = property("#ResolveJunctionsAll", $path);

// Check if the path actually changed (meaning it was a junction/link)
if ($path != $resolved) {
// Navigate to the resolved path and select it
goto $resolved;
} else {
echo "This path is already a physical folder (not a junction).";
goto $path;
}
Returns the message: The path is already a physical folder (not a junction).

highend
Posts: 14932
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for files misses lots of subdirectories

Post by highend »

Now run this one:

Code: Select all

text quicksearch("defaultsettings.yaml /a", "C:\", , "s");
Does it contain the file in your DropBox folder?
One of my scripts helped you out? Please donate via Paypal

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

Yes, that script finds the file inside DropBox.

highend
Posts: 14932
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for files misses lots of subdirectories

Post by highend »

Make a copy of your XY data folder
Remove everything inside of that one apart from: "XYplorer.ini" & the "Panes" folder
Remove license info from "XYplorer.ini"

Zip that folder, attach it to your next post
One of my scripts helped you out? Please donate via Paypal

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

Here is the file XYplorer.zip that contains the data folder XYplorer with everything removed except the file XYplorer.ini and the Panes subfolder.
To see the attached files, you need to log into the forum.

highend
Posts: 14932
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for files misses lots of subdirectories

Post by highend »

I have no problems to find that file in my %USERPROFILE%\Dropbox folder with your config files...

Why do you open each new tab with C:\Dropbox if the real one should be in your %USERPROFILE% and is neither a link nor a junction?

What happens if you enter:
fresh;
in the address bar and hit {ENTER}
and use the same search in C:\ for that file? Found / not found?

If everything else fails, you should still be able to find your files you're looking for by appending the /a suffix in the name field like:

Code: Select all

defaultSettings.yaml /a
One of my scripts helped you out? Please donate via Paypal

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Search for files misses lots of subdirectories

Post by alan65 »

My Dropbox folder used to be at C:\Dropbox and I set the "New tab path" to C:\Dropbox. I moved the Dropbox folder to C:\Users\David\Dropbox but didn't update the "New tab path" setting. Now that I have updated the "New tab path" setting to C:\Users\David\Dropbox, searching from the root directory C:\ finds the file in Dropbox. Strange...

Post Reply