youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit e5e74ffb97106949c64000e3d4266d0bbf08cc7c
parent eb99a7ee5f7bd36fa9dfcbaf0590ecc2854e3e30
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue,  6 Sep 2011 17:56:05 +0200

Fix os.makedirs in Windows

Diffstat:
Myoutube-dl | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/youtube-dl b/youtube-dl @@ -711,7 +711,9 @@ class FileDownloader(object): return try: - os.makedirs(os.path.dirname(filename)) + dn = os.path.dirname(filename) + if dn != '' and not os.path.exists(dn): + os.makedirs(dn) except (OSError, IOError), err: self.trouble(u'ERROR: unable to create directories: %s' % str(err)) return