
bsh.commands.mv.bsh Maven / Gradle / Ivy
/**
Rename a file (like Unix mv).
*/
bsh.help.mv = "usage: mv( fromFile, toFile )";
mv( String fromFile, String toFile )
{
this.from = pathToFile( fromFile );
this.to = pathToFile( toFile );
from.renameTo( to );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy