RealTimeSync not seeing filename changes

Get help for specific problems
Posts: 1
Joined: 31 Mar 2025

DavidLB

I'm on Windows 10 and I created a simple .cmd file to do the following:

@echo off
echo "%change_action% %change_path%" >> C:\temp\rts.log

If I go into my watched directory, create a new file, rename it, and then delete it,
I see the following in the log:

"Create D:\Junk\New Text Document.txt"
"Delete D:\Junk\New Text Document.txt"
"Delete D:\Junk\empty file"

Notice there is no notification of the rename to "empty file", just its deletion.

I'm also seeing Creates with empty "change_path"s.

Are these the expected behaviors?

Thank you.
User avatar
Posts: 4333
Joined: 11 Jun 2019

xCSxXenon

It seems that renaming a file in Windows actually results in two actions reported by the Windows API that RTS monitors. It's likely that it reports a new file with the new name and then a deletion with the old name. Since those macros from RTS only store the last detected action that triggered the command, the deletion of the "old" file is shown. I don't know if this is just how it has to be due to API limitations, the developer will need to chime in.