A feature-rich command-line audio/video downloader
Fix directory creation not working with absolute paths
Ricardo Garcia3af1e1728496
diff --git a/youtube-dl b/youtube-dlindex 4dea34376b..fe64819c75 100755--- a/youtube-dl+++ b/youtube-dl@@ -94,6 +94,7 @@ class FileDownloader(object):"""Create directory components in filename. Similar to Unix "mkdir -p"."""components = filename.split(os.sep)aggregate = [os.sep.join(components[0:x]) for x in xrange(1, len(components))]+ aggregate = ['%s%s' % (x, os.sep) for x in aggregate] # Finish names with separatorfor dir in aggregate:if not os.path.exists(dir):os.mkdir(dir)