Page 1 of 1

how to see when a name was changed

PostPosted: Wed Jan 29, 2025 4:16 pm
by pumasalad
I have an app that writes out a file, and if the file already exists, it renames the existing file with a suffix.

does anyone know a way to test if the file has been renamed in the last day so it can be moved to the trash? When I use "date added" it refers back to the date the file was originally made, when I use date modified, it doesn't pay attention to the file being renamed.

I'd like for the renamed original file to go away after some period of time, but I can't seem to figure out a way to make that happen.

Re: how to see when a name was changed

PostPosted: Thu Jan 30, 2025 9:39 am
by Mr_Noodle
To be clear, say a file named "blah" exists, and your app writes out, "blah 1" (or something like that). You want "blah" to be thrown away?

You might be able to do that using a nested condition. Look it up in the manual. You can set a condition to match another file in the same folder. You would probably need to use some sort of pattern match to see if there exists another file but with a suffix.