Files
langchain/langchain
Alpri Else 784d24a1d5 Support S3 Object keys with / in S3FileLoader (#1517)
Resolves https://github.com/hwchase17/langchain/issues/1510

### Problem
When loading S3 Objects with `/` in the object key (eg.
`folder/some-document.txt`) using `S3FileLoader`, the objects are
downloaded into a temporary directory and saved as a file.

This errors out when the parent directory does not exist within the
temporary directory.

See
https://github.com/hwchase17/langchain/issues/1510#issuecomment-1459583696
on how to reproduce this bug

### What this pr does
Creates parent directories based on object key. 

This also works with deeply nested keys:
`folder/subfolder/some-document.txt`
2023-03-08 16:17:26 -08:00
..
2023-02-20 22:54:15 -08:00
2023-01-15 16:45:16 -08:00
2023-02-20 21:43:02 -08:00
2023-02-27 07:45:54 -08:00
2022-10-24 14:51:15 -07:00
2022-11-12 11:22:32 -08:00
2023-03-07 07:59:37 -08:00
2023-02-20 21:15:45 -08:00
2023-01-19 14:48:30 -08:00