Example #1
0
 def add_names_to_files(self):
     path = '/Users/agreen/.stage/finished/'
     #path = '/Volumes/Charlie/.p/
     #path = '/Volumes/Papa/.finished/'
     try:
         if len(self.args) == 0:
             raise IndexError
         dir_name = self.args.join(' ')
     except IndexError:
         raise OrganizerExceptions.CommandLineArgumentException('must provide directory name')
     add_names = AddDirNameToFiles(dir_name, path)
     add_names.add()
     return None
Example #2
0
 def add_names_to_files(self):
     path = '/Users/agreen/.stage/finished/'
     #path = '/Volumes/Charlie/.p/
     #path = '/Volumes/Papa/.finished/'
     try:
         if len(self.args) == 0:
             raise IndexError
         dir_name = self.args.join(' ')
     except IndexError:
         raise OrganizerExceptions.CommandLineArgumentException(
             'must provide directory name')
     add_names = AddDirNameToFiles(dir_name, path)
     add_names.add()
     return None
Example #3
0
 def add_dir_names_to_sub_files(self, organizer_file):
     name_adder = AddDirNameToFiles(organizer_file.file_name, self.path)
     name_adder.add(should_print=False)
     return None
Example #4
0
 def add_dir_names_to_sub_files(self, organizer_file):
     name_adder = AddDirNameToFiles(organizer_file.file_name, self.path)
     name_adder.add(should_print=False)
     return None