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());
    }

}

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());
    }

}

Fix errors