175k views
1 vote
The new_directory function

User Jonette
by
3.6k points

1 Answer

6 votes

Answer:The new directory method creates a new directory within the current working directory.

Explanation:The new directory function and returns the list of the files within that directory.The new directory function allow to with the built in function MK dir().

To the new directory function create a current working directory.

import OS

OS.MKdir()

The code creates the directory projects in the current working directory to specify the full path.

User EJC
by
3.8k points