Using Python to create multiple folders in Mac OS X

Published: 20 April 2012
on channel: Mike Maxson
8,177
32

April 20, 2012

Here's the code used in the video:

python -c 'import sys,os,codecs;[os.mkdir(d) for d in codecs.open(sys.argv[1],"r","utf8")]' testfolders.txt

Feel free to copy and paste, don't forget to edit the testfolders.txt name to your own text file, and use the cd command to get in the right directory (otherwise you will have to put path statements into the command)
An excellent Unix\Linux command reference can be found here:

http://fosswire.com/post/2007/08/unix...


On this page of the site you can watch the video online Using Python to create multiple folders in Mac OS X with a duration of hours minute second in good quality, which was uploaded by the user Mike Maxson 20 April 2012, share the link with friends and acquaintances, this video has already been watched 8,177 times on youtube and it was liked by 32 viewers. Enjoy your viewing!