Skip to content
Branch: master
Find file History
bk2204 tools: add function to make directories honoring core.sharedRepository
Add a function to make a directory and intervening directories, honoring
core.sharedRepository.

To do so, add a utility function to perform an operation with the umask
set to a certain value. This is required because os.MkdirAll honors the
umask and is potentially recursive (so we can't fix things after
creating them). Without temporarily setting the umask, it isn't possible
to create directories with the right permissions if those permissions
are looser than the original umask.
Latest commit f5d5f48 Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
humanize Fix humanize's FormatByteRate() to work with 0s duration Oct 24, 2018
kv Add RemoveAll and Visit functions to kv store Dec 12, 2016
channels.go extract base channel wrapper to tools Nov 18, 2016
copycallback.go progress,tools: move CopyCallback (and related) to 'tools' Nov 22, 2017
copycallback_test.go progress,tools: move CopyCallback (and related) to 'tools' Nov 22, 2017
cygwin.go tools: wrap os.Getwd with cygwin support Feb 20, 2017
cygwin_windows.go Fix tools.TranslateCygwinPath() on MSYS May 29, 2017
filetools.go tools: add function to make directories honoring core.sharedRepository Dec 13, 2018
filetools_test.go config: allow fetching repo permissions for directories Dec 13, 2018
iotools.go progress,tools: move CopyCallback (and related) to 'tools' Nov 22, 2017
iotools_test.go update package imports Nov 15, 2016
math.go tools/math: teach tools.ClampInt to clamp integers Jun 9, 2017
math_test.go tools/math: teach tools.ClampInt to clamp integers Jun 9, 2017
ordered_set.go tools: introduce tools.OrderedSet Jun 21, 2017
ordered_set_test.go
os_tools.go tools: rename TranslateIfCygwin to TranslateCygwinPath Feb 28, 2017
str_tools.go tools: move ShellQuote to subprocess Sep 14, 2018
str_tools_test.go tools: move ShellQuote to subprocess Sep 14, 2018
stringset.go Refactor StringSet into tools package Jul 13, 2016
sync_writer.go tools: add empty functions when missing in *SyncWriter Dec 1, 2017
time_tools.go tools: compare expiration to "time.Now" instead of "from" Aug 25, 2017
time_tools_test.go tools/time_tools: test tools.IsExpiredAtOrIn Apr 6, 2017
umask_nix.go tools: add function to make directories honoring core.sharedRepository Dec 13, 2018
umask_windows.go tools: add function to make directories honoring core.sharedRepository Dec 13, 2018
util_generic.go Move CopyWithCallback into general tools for re-use May 19, 2016
util_linux.go Move CopyWithCallback into general tools for re-use May 19, 2016
util_test.go Merge branch 'master' into experimental/transfer-features May 31, 2016
You can’t perform that action at this time.