- I've recently used rclone to mount a remote folder locally with the mount address of %homepath%/Links/Alist and the cache address of E:/cache/Alist.
- rclone will create two folders vfs and vfsMeta at the cache address by default
When I create or modify a file at the mount address, rclone downloads the remote file to these two cache folders. - I add the mount address to the special folder list so that all files in the mount address will display the status icon.
- I know that the display of the status icon is related to the availability of the file. The mount address default file availability is available on this device, which is obviously wrong.
- What I want to achieve is: Compare the mount address with the cache address. If a file in the mount address is exactly the same as the file in the corresponding position in the cache address, indicate that the file has been cached, and set the availability of the file to "Available on this device"; if a file in the mount address is only the same as the file name in the corresponding position in the cache address, indicate that the file is being synchronized, and set the availability of the file to "Synchronizing"; If a file in the mount address does not exist at the corresponding location in the cache address, it means that the file is not cached, and the availability of the file is set to "Available online".
- I can't write js scripts, can anyone help me realize this requirement?
If you can pass on "Synchronizing", an Evaluator column can do the job:
remoteFolder = "D:\remote";
cacheFolder = "D:\cache";
if (InStr(fullpath, remoteFolder) < 0) return "---";
cachePath = Replace(fullpath, remoteFolder, cacheFolder);
Exists(cachePath) ? "Available" : "Not Available"