Posts: 4,655
Threads: 1,498
Joined: Sep 2016
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.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
(Mar-22-2017, 05:24 AM)buran Wrote: os.makedirs
does this
i searched for this. i did not know its name nor did i guess the right keywords. thanks! i need some better means to find python tools. i was almost ready to write such a function.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
if i read about too many things at once i forget enough about most of them to make that useless. i won't remember the function name or the particular words to describe it. this has happened before, do i know it is real. what i think i need to do is make a web page with all the nice things listed in a short form (one line each). that will be a lot of work.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.