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
-
2Those are just strings.thefourtheye– thefourtheye2015年01月11日 08:33:15 +00:00Commented Jan 11, 2015 at 8:33
1 Answer 1
Both of those functions take string arguments. "path" there is simply the name of the argument.
answered Jan 11, 2015 at 8:33
Amber
532k89 gold badges643 silver badges558 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py