Page 1 of 1
Search for files misses lots of subdirectories
Posted: 07 Feb 2026 01:36
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.
Re: Search for files misses lots of subdirectories
Posted: 07 Feb 2026 02:15
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.
Re: Search for files misses lots of subdirectories
Posted: 07 Feb 2026 03:38
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:\)?
Re: Search for files misses lots of subdirectories
Posted: 07 Feb 2026 22:37
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?
Re: Search for files misses lots of subdirectories
Posted: 07 Feb 2026 22:52
by highend
Menu - Scripting - Run Script...?
Re: Search for files misses lots of subdirectories
Posted: 08 Feb 2026 00:46
by alan65
Running the script gives the output
C:\Users\David\DropBox
Re: Search for files misses lots of subdirectories
Posted: 08 Feb 2026 00:57
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).
Re: Search for files misses lots of subdirectories
Posted: 08 Feb 2026 01:50
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?
Re: Search for files misses lots of subdirectories
Posted: 09 Feb 2026 03:37
by alan65
Yes, that script finds the file inside DropBox.
Re: Search for files misses lots of subdirectories
Posted: 09 Feb 2026 08:31
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
Re: Search for files misses lots of subdirectories
Posted: 09 Feb 2026 19:11
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.
Re: Search for files misses lots of subdirectories
Posted: 09 Feb 2026 20:05
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:
Re: Search for files misses lots of subdirectories
Posted: 10 Feb 2026 00:38
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...