Question: This assignment is an extension/alternation to your work in Comp 376. In this assignment you will implement the remaining functionality of your command interpreter .

This assignment is an extension/alternation to your work in Comp 376.

In this assignment you will implement the remaining functionality of your command interpreter.

The syntaxes are:

(For LIST)

LIST

or

LIST path

This will require the following two library functions (in Python)

os.path.exists(path) Returns true if path exists.

os.listdir(path) returns a python list of contents of directory.

os.getcwd() Returns the path of current directory.

(For the rest)

CHDIR path

REMOVE path/file

RENAME old new

This will require the following two library functions (in Python)

os.chdir(path) Changes current working directory to path

os.remove(path) Removes the file name path from current working directory

os.rmdir(path) Removes the directory named path from the current directory

os.rename(old,new) Renames the file or directory named old to new

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!