In Perun2, default core commands fail when they meet path collisions. Let's say that a file a.txt exists.
This command naturally fails. However, we can add the force flag before the command and change its behavior.
In this scenario, a new file is created at the place of a.txt and its previous content is erased if it was there.
The stack flag bypassed the problem of collision by renaming the file or directory. In this case, a new empty file with name a(2).txt is created.
Flags can be inserted before other commands. They are a good way of dealing with files that are named the same.
All files named data.txt from the entire directory tree are copied to the external drive. They will be renamed, so finally we will see data(2).txt, data(3).txt, ... in the destination.