derwolfe/teiler — pull request #30 by derwolfe (2014-11-03 02:04:27+00:00)
Title: Send directories with request 22

Closes #22

Instead of only sending a list of files with the request, send the directory names as well. This might be a bit of duplicated effort, but for now I see it as a simple solution to ensuring that the correct file locations are created. I will continue looking for something inside of twisted to do this.

One problem with the current design, is that it will rely on downloading the file 'x/y/z/filename.txt' as 'filename.txt'. The path information will need to be stored somewhere while this is happening - my bet is that the responsibility will fall on the downloader to keep a cache of the current request (since it will be needed to make the request).