Question: What does the glob ( ' * ' ) method do when called on a Path object in Python? Question 9 6 options: It deletes

What does the glob('*') method do when called on a Path object in Python?
Question 96 options:
It deletes all files in the specified directory.
It returns a list of all files and directories in the specified path.
It finds all files in the specified directory that match a specific pattern, in this case, any file.
It renames all files in the directory according to a specified pattern.

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!