mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Explain file-rename logic
This commit is contained in:
		| @@ -226,6 +226,8 @@ def set_tags(sender, | ||||
| def cleanup_document_deletion(sender, instance, using, **kwargs): | ||||
|     with FileLock(settings.MEDIA_LOCK): | ||||
|         if settings.TRASH_DIR: | ||||
|             # Find a non-conflicting filename in case a document with the same | ||||
|             # name was moved to trash earlier | ||||
|             counter = 0 | ||||
|             old_filename = os.path.split(instance.source_path)[1] | ||||
|             (old_filebase, old_fileext) = os.path.splitext(old_filename) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Felix Eckhofer
					Felix Eckhofer