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