This project implements a virtual file system with various commands to manage files and directories.
The Virtual File System Project aims to provide users with a simulated file system environment where they can create, manage, and interact with files and directories. It includes features such as creating virtual hard drives, navigating directories, creating and deleting files, copying and moving files between directories, and more.
- Create and manage virtual hard drives
- Navigate directories
- Create, delete, and rename files and directories
- Copy and move files between directories
- Display file contents
- Format virtual hard drives
- Provide help documentation for available commands
To use the project, follow these steps:
- Compile the source code.
- Run the executable file.
- Enter commands at the prompt to interact with the virtual file system.
The following commands are available:
createhd
: Create a new virtual hard drive.typehd
: Display the content of a virtual hard drive.selecthd
: Select a virtual hard drive.dirhd
: Display a list of created virtual hard drives.formathd
: Format a virtual hard drive.cd
: Change directory.cls
: Clear the console screen.create
: Create a new file.del
: Delete a file.dir
: Display a list of files in a directory.mkdir
: Create a new directory.type
: Display the content of a file.statushd
: Display properties of a virtual hard drive.removehd
: Remove a virtual hard drive.copyfrom
: Copy a file from the real hard drive to the virtual hard drive.copyto
: Copy a file from the virtual hard drive to the real hard drive.renamedir
: Rename a directory.copy
: Copy files between directories.help
: Display help information for commands.move
: Move a file or directory.rename
: Rename a file.rmdir
: Remove a directory.
For more detailed information on each command, use the help
command followed by the command name.
No installation required. Simply compile the source code and run the executable.
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.