Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 265d4a5

Browse files
Ryan HuffordRyan Hufford
Ryan Hufford
authored and
Ryan Hufford
committed
FileManager.md updated
1 parent d339834 commit 265d4a5

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FileManager.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,28 @@
22

33
An amazingly useless tool!
44

5+
##Console Class
6+
7+
The *Console* class manages inputs and outputs. The role of the *console* class is to create the
8+
objects necessary to interact with a user in the terminal. After prompting the user for some input,
9+
it then trims extra white space off any input and makes them uniformly lower case.
10+
11+
12+
##File Operator Class
13+
The *File Operator* class provides the methods necessary to analyze the user input and determine if certain
14+
file and directory requests are legal. Additionally, it contains functions to return various
15+
information about files that already exist. *File Operator* holds function which can be used to:
16+
- Check for contents
17+
- Receive info (Name, Path, Size, Created, Last Modified)
18+
- Create directories
19+
- Check file names for illegal characters
20+
- Rename files
21+
- Copy and delete both files and directories
22+
23+
##File Manager
24+
Using the *Console* class and the methods produced in the *File Operator* class the *File Manager* class
25+
executes the functions that the use requests. An intro is sent which displays the available commands.
26+
The initial while loop buffers against empty inputs. Next a switch statement is used to select
27+
between the possible methods in *File Operator*. Rename and copy/move are instatiated outside the switch
28+
statement and include the ability to search for an existing file and a try/catch statement to handle
29+
errors form the copy/move method.

0 commit comments

Comments
 (0)