In my company we are updating web software that uses a Perl script to perform specific operations. In updating the script, it will be rewritten in Java.
The main operations of the script are to move between folders and copy / remove files within them.
I need to perform Java commands like chdir
, rcopy
, rmove
, fcopy
, etc which are used in the current Perl script. Searching both on the web and here on Stack Overflow I read that Java does not offer equivalent commands. Is there a way to perform these operations?
For now from the Java documentation I was thinking of using java.nio.file.Files
. Are there better alternatives?