From f9b1f5575bb72f0457f7e24fbfb74a28e3357d69 Mon Sep 17 00:00:00 2001 From: LloydJr <98184266+LloydJr@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:29:50 -0400 Subject: [PATCH 1/2] Stuck on wondering 'Why I cannot create a folder' to proceed with the lab --- .idea/compiler.xml | 1 + FileManager.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 3f507c9..29fac82 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -7,6 +7,7 @@ + diff --git a/FileManager.md b/FileManager.md index 1e01e92..a20e5af 100644 --- a/FileManager.md +++ b/FileManager.md @@ -2,3 +2,40 @@ An amazingly useless tool! + +[list] a folder +[info on] on a file +[mkdir] make a new folder +[rename] a file +[copy, move, delete] files +[quit] the file manager shell + +What is [Markdown] +[Markdown] is a language for creating formatted text using plain-text editor. + +How to use [list] +[list] + +How to use [info on] +[info on] + +How to use [mkdir] +[mkdir] + +how to [rename] +[rename] + +how to [copy] +[copy] + +how to [move] +[move] + +how to [delete] +[delete] + +How to use [quit] +[quit] is a method where the user can exit the application. +By typing in[quit], the desire commands, running would be equal to false +instead of true and ends the while loop. +Example: When a user clicks 'exits', the game closes the application. \ No newline at end of file From d32aa582800af0d1b20f21b104f5559372f2976f Mon Sep 17 00:00:00 2001 From: LloydJr <98184266+LloydJr@users.noreply.github.com> Date: Mon, 25 Jul 2022 20:19:04 -0400 Subject: [PATCH 2/2] Completed lab --- FileManager.md | 51 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/FileManager.md b/FileManager.md index a20e5af..5f781f6 100644 --- a/FileManager.md +++ b/FileManager.md @@ -2,9 +2,8 @@ An amazingly useless tool! - [list] a folder -[info on] on a file +[info] on a file [mkdir] make a new folder [rename] a file [copy, move, delete] files @@ -14,25 +13,47 @@ What is [Markdown] [Markdown] is a language for creating formatted text using plain-text editor. How to use [list] -[list] - -How to use [info on] -[info on] +[list] prints the list in the environment of all the available Folders. +By using a for each loop and, it goes through the String array of 'lista' to +show a list of all the folders in the File. +Example: While using the terminal and inputting the command 'ls', it shows +a list of all the Folders and or Files in the directory. + +How to use [info] +[info] prints the name, the absolute path, the relative path, and the size of the +Folder. The [info] also does a try and catch when the Folder was created and when +the Folder was last modified. +Example: When right-clicking on a file and or folder on a users pc, the user can +get the information on the file and also get a filepath as well. How to use [mkdir] -[mkdir] - -how to [rename] -[rename] - -how to [copy] -[copy] +[mkdir] is a method to create a new folder to the file path. +{There were issues for it would skip over creating a folder +and catch Exception e} +Example: By right-clicking the mouse and clicking on new Folder, the user creates +a new folder. + +How to [rename] +[rename] is a method that replaces a 'Folder name' and whatever the user inputs +would replace the 'name' with a new 'name'. +Example: Right-clicking and selecting "Rename" on a file or folder can replace +the name with a new one. + +How to [copy] +[copy] takes a Folder and adds the same file structure and adds it to the +File array. +Example: the user copy and paste a string on the web to their word document. how to [move] -[move] +[move] copies the Folder and moves Folder in the File array. It then removes +the original from the File array. +Example: When the user in PowerPoint wants to move a slide from one point +to their desired point of placement. how to [delete] -[delete] +[delete] removes a file. In code, the Folder is removed from the File array. +Example: A user can delete a project from IntelliJ by selecting the +delete option. How to use [quit] [quit] is a method where the user can exit the application.