Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago