package seedu.scheduler.logic.commands;

import java.io.IOException;

import seedu.scheduler.commons.core.Config;
import seedu.scheduler.commons.core.EventsCenter;
import seedu.scheduler.commons.events.storage.FilePathChangeEvent;
import seedu.scheduler.commons.util.ConfigUtil;
import seedu.scheduler.commons.util.StringUtil;

/**
 * Manually change a file path to a user-specified location.
 */
public class PathCommand extends Command {
	
    public static final String COMMAND_WORD = "path";
    public static final String COMMAND_WORD2 = "p";
    public static final String MESSAGE_USAGE = COMMAND_WORD + " or "+ COMMAND_WORD2 + ": Change a specific file path to save. "
            + "Parameters: FILE_PATH\n"
            + "Example: " + COMMAND_WORD +  " or "+ COMMAND_WORD2 + " dropbox";
    
    public static final String MESSAGE_SUCCESS = "File Path to save changed to: ";
    
    String filePath;
    
    public PathCommand(String filePath) {
    	this.filePath = filePath;
    }

	@Override
	public CommandResult execute() {
		EventsCenter.getInstance().post(new FilePathChangeEvent(filePath));
		return new CommandResult(MESSAGE_SUCCESS + filePath);
	}

}

@@ -386,16 +386,38 @@
 cation.%0A
+ * @@author A0139956L%0A
  */%0Apubl
@@ -1188,7 +1188,16 @@
 %0A%09%7D%0A
-%0A
 %7D%0A
+//@@author

add author to PathCommand.java