What do I have to do to refresh the remote directory manually?

As the title says, I need to refresh the directory manually, because automatic refresh sometimes results in multiple refreshes and file corruption because the network is too slow.

It is not clear at all what you are doing and what is rclone part in it.

The best would be to fill in template you saw when you opened this issue.

I'm sorry I didn't say what I meant.
I mean, I'd like to ask rclone if there are any instructions to refresh the directory manually.
Because I need to import the files in S3 into the editing software for editing, our team shares files through S3, so the directory is updated frequently.
The automatic refresh instruction such as "--dir-cache-time 2s" will cause the file to be corrupted when I import the file, because the file is refreshed before it has been loaded, so I want to refresh the directory manually after the import is complete.

Make sure that your mount command opens rc interface and then you can force a refresh using vfs/refresh. You can refresh all mount or specific directory only.

# your mount command
$ rclone mount remote: mount_point --rc --rc-addr 127.0.0.1:5575 --rc-no-auth... [other mount options]

# force refresh all
$ rclone rc vfs/refresh

# force refresh specific directories only
$ rclone rc vfs/refresh dir=home/junk dir2=data/misc

Thank you very much for your reply. Now the port has been changed to 5572 and I will execute it.

rclone rc vfs/refresh. 

The content returned is.
{
"result": {
"": "OK"
}
}
But it didn't seem to work properly, because I refreshed the directory manually and found that it didn't change.

Or I would like to ask if there is a way for me to use.

-- dir-cache-time 2s. 

When mounting, rclone does not refresh the files being loaded, only the directory?
Because the current problem is that when I am loading the file, the file is frequently refreshed and corrupted.

I think it only refreshes root dir...

If you want to refresh all content run:

rclone rc vfs/refresh recursive=true

Please note that this can time out if you have many files/slow connection. In such case you have to add _async=true and run it in the background. You can query its status using job/status

Thank you very much for your help. I tried to implement your plan and got the same result, and my files are all in the root directory. Unfortunately, the problem has not been solved. Thank you very much for your reply!
And I got the results :
ERROR : onecode.jpg: ReadFileHandle.Read error: unexpected EOF
2024/06/17 12:37:41 ERROR : IO error: unexpected EOF

Your original post is very general with effectively zero details. General attempt to help failed:)

If you need further help please provide all info as in original template.

I am very sorry to give you a general explanation of the problem, but at present I am trying to use.

./rclone sync --update onecode:onecode/21.mp4 X:/

To incrementally update my file directory, but the log shows that it doesn't seem to work properly
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "onecode.jpg"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "2.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "3.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "4.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "5.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "6.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "7.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "8.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "9.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "10.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "11.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "12.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "13.mov"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "14.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "15.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "16.mov"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "17.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "18.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "19.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "20.mp4"
2024/06/17 18:50:04 NOTICE: S3 bucket onecode path 21.mp4: Odd name received "21.mp4"

Can be just me but now I understand your issue even less.

Before I assumed (wrongly maybe) that you are talking about rclone mount as you mentioned "--dir-cache-time 2s".

Now you are posting fragment of some log file and say that your rclone sync does not work.

I think in order to make any progress we have to step back.

Could you precisely describe your setup, your issue and provide as much info as possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.