Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Ensure documents directory still exists after nested deletion

Wolf-Bastian Poettner0ac93e88918d
diff --git a/src/documents/tests/test_file_handling.py b/src/documents/tests/test_file_handling.py
index 912d02573..c4d5f7f32 100644
--- a/src/documents/tests/test_file_handling.py
+++ b/src/documents/tests/test_file_handling.py
@@ -264,6 +264,8 @@ class TestDate(TestCase):
"/documents/originals/none/none"), False)
self.assertEqual(os.path.isdir(settings.MEDIA_ROOT +
"/documents/originals/none"), False)
+ self.assertEqual(os.path.isdir(settings.MEDIA_ROOT +
+ "/documents/originals"), False)
@override_settings(MEDIA_ROOT="/tmp/paperless-tests-{}".
format(str(uuid4())[:8]))