Skip to content

TnT74K/Project-VFS

Repository files navigation

Project-VFS

This is a virtual file system (VFS) written entirely in C#. This project was developed by three friends. We divided the project into three main parts, each in a separate file. Responsibilities are documented in DivisionGuide.md.

Part One: Definitions

File: Definitions.cs

In this part we define the objects needed for the VFS. There are four main types:

  • User
  • Node
  • Directory
  • File

Both Directory and File inherit from Node.

Part Two: Commands

File: Commands.cs

Here we implement several Linux-like terminal commands as methods. There are 23 methods; the main methods are public and helper methods are private.

Part Three: Program

File: Program.cs

The program is the engine that receives input and safely invokes methods to respond. It receives user commands, processes them, then calls related methods. We use a large switch statement with goto labels.

The Program is divided into several parts:

  • Initial values
  • Lock Page
    • Used for user authentication (Tip: use skip to quickly enter the system as User1)
    • Or exiting the system
  • System Page
    • VFS functionality

Extra commands

  • lock -> goes to the Lock Page section.
  • help -> shows an explanation of how to use the system commands.

About

This is a simulated Virtual File System(VFS) in C# for Data Structure course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages