@@ -0,0 +1,1364 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage fs.command;%0A%0Aimport fs.App;%0Aimport fs.Disk;%0Aimport java.io.IOException;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0A/**%0A *%0A * @author Leo%0A */%0Apublic class MoveFileCommand extends Command%7B%0A%0A    public static final String COMMAND = %22Move%22;%0A    @Override%0A    public void execute(String%5B%5D args) %0A    %7B%0A        try %0A        %7B%0A            if (args.length != 3)%0A            %7B%0A                reportSyntaxError();%0A                return;%0A            %7D%0A            String oldPath = args%5B1%5D;%0A            String newPath = args%5B3%5D;%0A            App app = App.getInstance();%0A            Disk disk = app.getDisk();%0A            disk.moveFile(oldPath, newPath);%0A        %7D %0A        catch (IOException ex) %0A        %7B%0A            Logger.getLogger(MoveFileCommand.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected String getName() %0A    %7B%0A        return COMMAND;%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %0A    %7B%0A        return %22Moves a file or directory to another directory.%22;%0A    %7D%0A%0A    @Override%0A    protected String getSyntax() %0A    %7B%0A        return getName() + %22CurrentDirName /to/ NewDirName%22;%0A    %7D%0A    %0A%7D%0A

Move file command implemented.