1

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)

shauryachats
10.5k4 gold badges38 silver badges48 bronze badges
asked Jan 11, 2015 at 8:31
1
  • 2
    Those are just strings. Commented Jan 11, 2015 at 8:33

1 Answer 1

2

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

answered Jan 11, 2015 at 8:33
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.