On Tue, 26 Aug 2008 16:49:32 -0700 (PDT) Jimmy John <jimmyj_in at yahoo.com> wrote: JJ> #if the directory leading to the file does not exist, create them recursively JJ> dirname = os.path.dirname(destfile) JJ> if not os.path.isdir(dirname): JJ> os.makedirs(dirname) Would this break if `dirname' was an existing file name? Ted