Search a file on Windows Explorer

What is the problem you are having with rclone?

I have a mounted driver with rclone. I want to search for a file inside the Windows Explorer. But it doesn't return any result, it didn't even start to search.
What should I do to make this work?

What is your rclone version (output from rclone version)

--> 1.55.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 64 bit

Which cloud storage system are you using? (eg Google Drive)


This is the command that I'm running to Rclone.

C:\rclone\rclone.exe mount JMFAWS:jmf-cloud/ S: --vfs-case-insensitive --vfs-cache-mode full --vfs-write-back 10s --vfs-cache-max-age 300s --vfs-cache-poll-interval 60s --cache-dir %temp% --network-mode --dir-cache-time 5s --use-server-modtime --no-console


using windows explorer, do you see some folders and files?

what do you mean by search?
that you are using windows explorer search function or navigating the folders one by one to find that file?

are you using the search text box?

I'm trying to use the search text box.

a debug log would show what is going on.

keep in mind that rclone has to make a lot of api calls to s3 to cache the folder/file structure and that can take time.
one option might be to pre-cache the structure and the search might go faster.

  1. add --rc to the mount command
  2. after the mount is running, run this command
    rclone rc vfs/refresh recursive=true -vv
  3. try to perform a search
  4. let us know if that makes a difference.

After running the command:

c:\rclone>rclone rc vfs/refresh recursive=true -vv
2021/08/25 15:38:21 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "rc" "vfs/refresh" "recursive=true" "-vv"]
"result": {
"": "OK"
2021/08/25 15:39:10 DEBUG : 4 go routines active

Still nothing shows on the search box, looks like it didn't even starting to search, nothing happens.

i tried it now and i was able to search for a file, work quickly.

to be clear, in windows explorer, you can see S: and manually navigate to find files?

Yes, using the mouse or keyboard, I can navigate to files, folder, copy, paste and anything else like a normal windows folder/file.
The only problem is the search text box that didn't work.

so you do not see this?

i am not an expert at vfs, as i run most of my mounts as read-only and do not use --vfs-cache-mode
as a test i would change --dir-cache-time 5s to --dir-cache-time 500h
refresh that cache and try to search again.

Only change 5s to 500h ?
The rest leave the same? the --rc I remove?

  1. change 5s to 500h and do not remove --rc
  2. re-start the mount
  3. do the vfs/refresh command
  4. search via windows explorer.

Still nothing, very weird.

if you try to search for a local file, does that work?

Yes, the local files works.

take a look at windows settings for search, might have an exlusion or some other issue.

perhaps @Ole, a fellow windows rcloner, might have an idea?

I check the option "Don't use the index when searching in file folder for system files (searches might take longer)"

Now it start the search

great, that sure was a strange one...

what type of user do you run rclone as.
standard, admin, system or what?

Standard I think, my user have Admin privilage, but I didn't run the CMD as admin.

that makes sense.

the reason i asked, searching in file folder for system files

run rclone mount to drive letter or folder, as a system user, all processes including windows explorer can see it

run rclone mount to drive letter, as standard user, windows explorer will see it.

run rclone mount to drive letter, as admin user, windows explorer will not see it
run rclone mount to folder, as admin user, windows explorer will see it

How can I mount as System User?
I have some programs that can't find the rclone mounted driver, some programs that run as admin.

there are a few ways but the easiest is to use windows task scheduler.