Check whether an image already exists

Discuss RoboTask here
Post Reply
sarnusch
Posts: 9
Joined: Thu Apr 28, 2022 9:05 am

Check whether an image already exists

Post by sarnusch »

Hello,
when I use 'Copy/Move File' I can choose what happens if the target file already exists.

Screenshot 2022-06-23 154330.png
Screenshot 2022-06-23 154330.png (19.9 KiB) Viewed 49 times

In a new project I want to edit images ('Open Image', 'Resize Image', etc.) and save them to another path with the action 'Save Image'.
But here I can not check whether the image already exists in the target path or not.

Screenshot 2022-06-23 154355.png
Screenshot 2022-06-23 154355.png (9.67 KiB) Viewed 49 times

Is it possible to add this function to the action 'Save Image'?
At the moment I am using a temporary folder to copy the files in a second step with the action 'Copy/ Move File'.
Oleg
Site Admin
Posts: 2773
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Check whether an image already exists

Post by Oleg »

OK, thanks for the suggestion.
I wrote it down in our ToDo
Oleg Yershov
sarnusch
Posts: 9
Joined: Thu Apr 28, 2022 9:05 am

Re: Check whether an image already exists

Post by sarnusch »

Hi,
I think I found another workaround with an 'IfThen' and {FolderExists({TempDir})} and {FileExists({TempDir}\file.tmp)}.
Thanks for your quick reply.
Oleg
Site Admin
Posts: 2773
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Check whether an image already exists

Post by Oleg »

sarnusch wrote: Thu Jun 23, 2022 3:08 pm I think I found another workaround with an 'IfThen' and {FolderExists({TempDir})} and {FileExists({TempDir}\file.tmp)}.
This is good solution.
Oleg Yershov
Post Reply