Fix makedir to mkdir

This commit is contained in:
cryobry
2018-05-31 11:03:15 -04:00
parent db1900c7e7
commit aa77b22cbe

View File

@@ -8,7 +8,7 @@
download_root_dir = '/home/bryan/Downloads/Podcasts' download_root_dir = '/home/bryan/Downloads/Podcasts'
# set handheld directory # set handheld directory
handheld_root_dir = '/run/media/bryan/D5E7-1B94/Podcasts' handheld_root_dir = '/run/media/bryan/SANSA CLIPZ/Podcasts'
# feeds (python list) # feeds (python list)
feedurls = ['http://linuxactionnews.com/rss', \ feedurls = ['http://linuxactionnews.com/rss', \
@@ -124,7 +124,7 @@ if os.path.exists(handheld_root_dir):
# define copy to handheld function # define copy to handheld function
def copy_files(src_file, dest_dir): def copy_files(src_file, dest_dir):
if not os.path.isdir(dest_dir): if not os.path.isdir(dest_dir):
os.makedir(dest_dir) os.mkdir(dest_dir)
filename = os.path.basename(src_file) filename = os.path.basename(src_file)
dest_file = os.path.join(dest_dir, filename) dest_file = os.path.join(dest_dir, filename)
if not os.path.exists(dest_file): if not os.path.exists(dest_file):