mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	improve file renaming speed.
This commit is contained in:
		| @@ -276,13 +276,6 @@ def update_filename_and_move_files(sender, instance, **kwargs): | ||||
|             Document.objects.filter(pk=instance.pk).update( | ||||
|                 filename=new_filename) | ||||
|  | ||||
|             logging.getLogger(__name__).debug( | ||||
|                 f"Moved file {old_source_path} to {new_source_path}.") | ||||
|  | ||||
|             if instance.archive_checksum: | ||||
|                 logging.getLogger(__name__).debug( | ||||
|                     f"Moved file {old_archive_path} to {new_archive_path}.") | ||||
|  | ||||
|         except OSError as e: | ||||
|             instance.filename = old_filename | ||||
|             # this happens when we can't move a file. If that's the case for | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler