]> granicus.if.org Git - transmission/commit
Take another approach to creating intermediate dirs on *NIX
authorMike Gelfand <mikedld@mikedld.com>
Fri, 27 Oct 2017 13:12:55 +0000 (16:12 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Mon, 30 Oct 2017 07:23:18 +0000 (10:23 +0300)
commit474aabbbc4af8a6706ff5466f460feb24ee58934
tree3e5a368b83bd3b1da80090b26c7dbbbdbca587bf
parent0378ee829872c51ae18b77cd19cb2ad6e17d116b
Take another approach to creating intermediate dirs on *NIX

Walk up one level at a time until the directory creation succeeds, then go
back down one level at a time. This reduces the number of operations in the
most common case (when directory already exists).
libtransmission/file-posix.c