Пример #1
0
	def paste_symlink(self, relative=False):
		copied_files = self.env.copy
		for f in copied_files:
			try:
				if relative:
					relative_symlink(f.path, join(getcwd(), f.basename))
				else:
					symlink(f.path, join(getcwd(), f.basename))
			except Exception as x:
				self.notify(x)
Пример #2
0
 def paste_symlink(self, relative=False):
     copied_files = self.env.copy
     for f in copied_files:
         try:
             if relative:
                 relative_symlink(f.path, join(getcwd(), f.basename))
             else:
                 symlink(f.path, join(getcwd(), f.basename))
         except Exception as x:
             self.notify(x)
Пример #3
0
 def paste_symlink(self, relative=False):
     copied_files = self.copy_buffer
     for f in copied_files:
         self.notify(next_available_filename(f.basename))
         try:
             new_name = next_available_filename(f.basename)
             if relative:
                 relative_symlink(f.path, join(getcwd(), new_name))
             else:
                 symlink(f.path, join(getcwd(), new_name))
         except Exception as x:
             self.notify(x)
Пример #4
0
 def paste_symlink(self, relative=False):
     copied_files = self.copy_buffer
     for f in copied_files:
         self.notify(next_available_filename(f.basename))
         try:
             new_name = next_available_filename(f.basename)
             if relative:
                 relative_symlink(f.path, join(getcwd(), new_name))
             else:
                 symlink(f.path, join(getcwd(), new_name))
         except Exception as x:
             self.notify(x)
Пример #5
0
 def paste_symlink(self, relative=False):
     copied_files = self.copy_buffer
     for fobj in copied_files:
         new_name = next_available_filename(fobj.basename)
         self.notify(new_name)
         try:
             if relative:
                 relative_symlink(fobj.path, join(getcwd(), new_name))
             else:
                 symlink(fobj.path, join(getcwd(), new_name))
         except OSError as ex:
             self.notify('Failed to paste symlink: View log for more info',
                         bad=True, exception=ex)