package seedu.taskboss.logic.parser;

import java.io.File;

import seedu.taskboss.logic.commands.Command;
import seedu.taskboss.logic.commands.SaveCommand;

/**
 * Parses input arguments and creates a new SaveCommand object
 */

public class SaveCommandParser {

    /**
     * Parses the given arguments in the context of the SaveCommand
     * and returns an SaveCommand object for execution.
     */
    public Command parse(String args) {
        File file = new File(args.trim());

        if (!file.exists() && !file.isDirectory()) {
            file.mkdirs();
        }

        return new SaveCommand(args.trim());
    }

}

@@ -439,142 +439,8 @@
 s) %7B
-%0A        File file = new File(args.trim());%0A%0A        if (!file.exists() && !file.isDirectory()) %7B%0A            file.mkdirs();%0A        %7D
 %0A%0A  

Update SaveCommandParser.java