mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Ensure the scratch directory exists before consuming this source (#5579)
This commit is contained in:
		| @@ -232,6 +232,9 @@ class Command(BaseCommand): | ||||
|         if not os.path.isdir(directory): | ||||
|             raise CommandError(f"Consumption directory {directory} does not exist") | ||||
|  | ||||
|         # Consumer will need this | ||||
|         settings.SCRATCH_DIR.mkdir(parents=True, exist_ok=True) | ||||
|  | ||||
|         if recursive: | ||||
|             for dirpath, _, filenames in os.walk(directory): | ||||
|                 for filename in filenames: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H