show all files in a directory, create a file/directory, delete a file/directory, rename a file/directory, copy a file/directory, move a file/directory using java command line arguments and basic terminal commands
HOW TO USE
download fe.java file
javac fe.java
java fe help
USER MANUAL
[COMMAND LINE FILE EXPLORER]
-
create : java fe create [target] or java fe create [target] [file_name]
-
delete : java fe delete [target] [file_name] or java fe delete [file_name]
-
explore : java fe explore[target_directory_address] or java fe explore [directory_name]
-
copy : java fe copy [source_file_name] [target_directoy] or java fe copy [source_directory] [target_directory]
-
move : java fe move [source directory] [target_directory] or java fe move [source_file_name] [target_directory]
-
rename : java fe rename [target_directory/target_file_name] [renamed_name]
-
Download
fe.java N.B. all the others files here are for better doucmentations and understandings
or copy everything from fe.java and save it as fe.java -
Compile it using
javac fe.java
✔️ create direcotry or file using java command line args , if we provide a args[1] string like file_name.extension then it will create a file with and if we provide a args[1] string without extension then it will create a directory/folder
- File :
java fe create [file_name.file_extension]
- Directory :
java fe create [directory_name]
✔️ explore directory or file using java command line args, if we provide nothing it will just explore the current directory and if we provide a valid directory then it will explore that directory level by level
- Explore Current Directory :
java fe explore
- Explore Target Directory :
java fe explore [target_direcotry]
✔️ delete directory or file using java command line args, if we provide a args[1] string with the directory name/file_name or target_directory_with_file_name or two args[1] args[2] strings like target_directory and file_name we can delete the directory or file from our system
- Delete a Directory/File :
java fe delete [target_directory/target_file]
or java fe delete [target_address] [target_directory/target_file]
✔️ copy a dierctory or file using java command line args to another directory, if we provide two args string args[1] as source_file or source_directory and args[2] target_directory we can do that
- Copy a File/Directoy to another Directory :
java fe copy [source_file/source_directory] [target_directory]
✔️ move a directory or file using java command line args to another directory, if we provide two args args string args[1] as source_file or source_directory and args[2] target_directory we can do that (almost copy!)
- Move a File/Directory to another Directory :
java fe move [source_file/source_directory] [target_directory]
✔️ rename a directory or file using java command line args, if we provide two args string args[1] as source_file or source_directory and args[2] as new name for renaming that file or directory we can do that
- Rename a File/Directory :
java fe rename [source_file/source_directory] [new_name]
✔️ for any kind of explorer help
- Help :
java fe help