Example #1
0
 def make_folders(self, verbose = False):
     """
     make_folders: create the web-folders
     
     20130103/RB: started the function
     
     INPUT:
     None
     
     OUTPUT:
     - True: success, or False: failure
     """
     HBFUN.verbose("\nHBalbum/make_folders()", verbose)
     
     if self.album_path == self._default_source_path:
         HBFUN.printError("album_path and default_source_path are the same, this is not allowed!", inspect.stack())
         return False
     
     path = self.album_path + self.pics_dir
     HBFUN.check_and_make_folder(path, verbose)
     
     path = self.album_path + self.thumbs_dir
     HBFUN.check_and_make_folder(path, verbose)
     
     path = self.album_path + self.resources_dir
     HBFUN.check_and_make_folder(path, verbose)
             
     path = self.album_path + self.html_dir
     HBFUN.check_and_make_folder(path, verbose)  
     
     return True      
Example #2
0
 def make_folders(self, verbose = False):
     """
     make_folders: create the event specific folders
     
     20130103/RB: started the function
     
     To clean up __init__
     
     """
     HBFUN.verbose("\nHBevent/make_folders()", verbose)
     
     path = self.album_path + self.pics_dir + self.event_dir
     HBFUN.check_and_make_folder(path, verbose)
     
     path = self.album_path + self.thumbs_dir + self.event_dir
     HBFUN.check_and_make_folder(path, verbose)
     
     path = self.album_path + self.resources_dir + self.event_dir
     HBFUN.check_and_make_folder(path, verbose)
             
     path = self.album_path + self.html_dir + self.event_dir
     HBFUN.check_and_make_folder(path, verbose)  
     
     return True