JOSM autosave Directory

Is there a way to change the autosave directory in Josm ?

Not without changing the source code.
The autosave directory is always located in the user data directory:

However, the home or user data directory can be changed:
https://josm.openstreetmap.de/wiki/Help/CommandLineOptions