More sanity with exception types and raises docs.
[pyutils.git] / src / pyutils / files / directory_filter.py
index 74d49fb6168dbedfd4c5dc83322e77bc7d166550..243056e9d58191150271536545b0eea5bce36198 100644 (file)
@@ -30,6 +30,9 @@ class DirectoryFileFilter(object):
     content to-be-written is identical to the contents of the file on
     disk allowing calling code to safely skip the write.
 
+    Raises:
+        ValueError: directory doesn't exist
+
     >>> testfile = '/tmp/directory_filter_text_f39e5b58-c260-40da-9448-ad1c3b2a69c2.txt'
     >>> contents = b'This is a test'
     >>> with open(testfile, 'wb') as wf: