Bird
0
0

Why might DirectoryLoader silently skip some files when loading a directory?

hard📝 Conceptual Q10 of 15
LangChain - Document Loading
Why might DirectoryLoader silently skip some files when loading a directory?
AIt loads all files but hides errors in the console
BDirectoryLoader only loads files smaller than 1MB by default
CFiles with unsupported extensions or unreadable permissions are skipped
DFiles are skipped if their names contain spaces
Step-by-Step Solution
Solution:
  1. Step 1: Understand DirectoryLoader file handling

    It loads supported file types and skips files it cannot read due to permissions or unsupported formats.
  2. Step 2: Check other options for accuracy

    No size limit by default, errors are not hidden silently, and spaces in names do not cause skipping.
  3. Final Answer:

    Files with unsupported extensions or unreadable permissions are skipped -> Option C
  4. Quick Check:

    Unsupported or unreadable files are skipped [OK]
Quick Trick: Unsupported or unreadable files are skipped silently [OK]
Common Mistakes:
  • Thinking size limits apply
  • Assuming errors are hidden
  • Believing spaces cause skipping

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes