Takes input and trims/formats it for other methods to take easily.
Prints _ to the console
Prompts for string. Has special commands for asking for help and inputting nothing- otherwise, hands it off to processCommand.
A switch statement for the different functionalities implemented in FileOperator. May prompt for additional user input depending on the command.
Part of processCommand's switch cases. Renames a given file. Covers edge cases for given file not existing.
Part of processCommand's switch cases. Moves a file from one path to another. Covers edge cases for unexpected exceptions.
Performed in Console's promptForString when the user asks for help. Prints command options.
Most of processCommand's switch cases.
Lists files in a given folder. Covers edge cases for empty folders and improper paths.
Prints a given file's name, paths, size, creation date, and mutation date. Covers edge cases for improper paths.
Prints current day, month, year, hour, minute, and second.
Makes a new folder. Covers edge cases for illegal characters, repeat names, and unexpected exceptions.
Checks input for disallowed characters.
Changes a given folder's name. Covers edge cases for repeat names and unexpected exceptions.
Depending on user input, will either move or copy a given file to a new location. Covers edge cases for unexpected exceptions.
Deletes both files and folders of the user's choice. Covers edge cases for given file not existing.
Deletes the entire directory.
Cuts out one directory and copies it to a new locations.
Creates a new directory.