Python Forum
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
making a directory
#1
i am given a string of a path and need to make a directory there unless one is already there.  so i might need to also make the parents.  is there a slick function/module to do this in python (without installing anything) or is my only easy option to do subprocess.call(['mkdir','-p',dirpath)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
making a directory - by Skaperen - Mar-22-2017, 05:17 AM
RE: making a directory - by buran - Mar-22-2017, 05:24 AM
RE: making a directory - by Skaperen - Mar-22-2017, 09:01 AM
RE: making a directory - by wavic - Mar-22-2017, 09:06 AM
RE: making a directory - by Skaperen - Mar-23-2017, 02:52 AM
RE: making a directory - by wavic - Mar-23-2017, 03:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Making Zip file of a file and Directory Nasir 2 1,096 Oct-07-2022, 02:01 PM
Last Post: Nasir

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020