/jEdit/tags/jedit-4-3-pre2/bsh/commands/mv.bsh
# · Unknown · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · dabe4883a7de1c2a242777848c5de5ab MD5 · raw file
- /**
- 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 );
- }