I'm not sure if it's really a better option. Using TMPDIR requires 
indepth knowledge on how dcs works. I think it's better to add a command 
line option, which solves the issue with temporary folder storage 
immediately.

On 26.04.2014 18:40, Michael Stapelberg wrote:
>
> In index/write.go:
>
> > @@ -15,6 +16,8 @@ import (
> >  	"code.google.com/p/codesearch/sparse"
> >  )
> >
> > +var tmpFolder = flag.String("tmp_path", "/tmp", "Path to temporary folder")
>
> Instead of adding a -tmp_path flag, why not just honor the standard 
> TMPDIR environment variable? See http://en.wikipedia.org/wiki/TMPDIR
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Debian/dcs/pull/32/files#r12025143>.
>


-- 
Samsung Enterprise Portal mySingle

Samsung_Logo_for_Mail_Signature

Krzysztof Sasiak

Samsung R&D Institute Poland

Samsung Electronics

k.sasiak@samsung.com