Sale!

CSE 461 File Systems Project III solved

Original price was: $35.00.Current price is: $30.00. $25.50

Category:

Description

5/5 - (6 votes)

The third part of this project requires that you implement a simple shell that uses your file system. This part of the project will require you to implement the class Shell along with member functions. The interface for the class should include :

class Shell: public Filesys
{
Public :
Shell(string filename, int blocksize, int numberofblocks);
int dir();// lists all files
int add(string file,string buffer);// add a new file using buffer as data
int del(string file);// deletes the file
int type(string file);//lists the contents of file
int copy(string file1, string file2);//copies file1 to file2
};

CSE 461

An explanation of the member functions follows :

Shell(string filename, int blocksize, int numberofblocks): This will create a shell object using the Filesys on the file filename.
int dir(): This will list all the files in the root directory.
int add(string file, string buffer): add a new file using buffer as data
int del(string file): deletes the file
int type(string file): lists the contents of file
int copy(string file1, string file2): copies file1 to file2
IMPLEMENTATION GUIDELINES :

See the ls function for Filesys here. See the dir function for Shell here. See the main program for Shell here.

CSE 461