Browse Source

Fix makedir to mkdir

cryobry 4 years ago
parent
commit
aa77b22cbe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      get_podcasts.py

+ 2 - 2
get_podcasts.py

@@ -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):