rushhour
rushhour

Reputation: 11

Convert string into path object

How do I convert a string into path objects?? Or how could I make path objects in python? For example: I need to use path objects in these: os.listdir(path) os.chroot(path)

Upvotes: 1

Views: 4515

Answers (1)

Amber
Amber

Reputation: 527488

Both of those functions take string arguments. "path" there is simply the name of the argument.

Upvotes: 2

Related Questions