示例#1
0
文件: run.py 项目: greenac/Organizer
 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
示例#2
0
文件: run.py 项目: greenac/Organizer
 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
示例#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
示例#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