Toon Pieton wrote:
> Hey friendly users!
>
> My question is pretty simple. How can I create a folder with Python?
> Trying to make a program which will allow me to save my notes (txt
> files) quickly and cleanly. Having to create folder manually would
> really make it a bit obsolete.
>
> Thanks
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Toon Pieton
> Sent: Wednesday, January 10, 2007 2:31 PM
> To: tutor
> Subject: [Tutor] Creating folders
>
> Hey friendly users!
>
> My question is pretty simple.
Hey friendly users!
My question is pretty simple. How can I create a folder with Python? Trying
to make a program which will allow me to save my notes (txt files) quickly
and cleanly. Having to create folder manually would really make it a bit
obsolete.
Thanks in advance!
___
Now, how would I enter this folder? lets say, to make a subfolder or create files inside it?I see os.chdir() but that either can't see newly created folders, or I must use the complete path... I'm not sure which.
just created folder 'test' in current scripts directory...os.chdir('test')no such fil
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Chris Hengge
Sent: Wednesday, October 11, 2006 4:00 PM
To: Python Tutor
Subject: [Tutor] Creating folders in windows...
I found this from a
I found this from a 2004 mailing on this list..os.path.mkdir('folder') Doesn't work... there is no mkdir in os.path (old style maybe?)>>> os.path.mkdir('folder')Traceback (most recent call last):
File "", line 1, in ?AttributeError: 'module' object has no attribute 'mkdir'>>> dir(os.path)['__all_