mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	excluded the lockfile from the sanity checker.
This commit is contained in:
		| @@ -46,6 +46,10 @@ def check_sanity(): | |||||||
|         for f in files: |         for f in files: | ||||||
|             present_files.append(os.path.normpath(os.path.join(root, f))) |             present_files.append(os.path.normpath(os.path.join(root, f))) | ||||||
|  |  | ||||||
|  |     lockfile = os.path.normpath(settings.MEDIA_LOCK) | ||||||
|  |     if lockfile in present_files: | ||||||
|  |         present_files.remove(lockfile) | ||||||
|  |  | ||||||
|     for doc in Document.objects.all(): |     for doc in Document.objects.all(): | ||||||
|         # Check sanity of the thumbnail |         # Check sanity of the thumbnail | ||||||
|         if not os.path.isfile(doc.thumbnail_path): |         if not os.path.isfile(doc.thumbnail_path): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler