[tahoe-dev] wanted in webapi: a way to download a file only if it is a file

zooko zooko at zooko.com
Fri Aug 10 12:16:07 PDT 2007


Well, I've now updated webapi.txt [1] quite a bit so that commands  
which might reference either directories or files appear combined  
into one section.

I also added a big section on TOCTTOU bugs and how to avoid them by  
using URIs.

Writing the TOCTTOU section leads me to think that maybe we  
*shouldn't* provide a "GET $URL?t=file" feature to prevent people  
from accidentally getting a directory when they wanted a directory.   
Instead, they should query the parent directory and then request the  
file-or-directory by its URI.

Regards,

Zooko

[1] http://allmydata.org/trac/tahoe/browser/docs/webapi.txt



More information about the tahoe-dev mailing list