![]() The regex only matched volume paths without a trailing path-separator. In cases where a path would be passed with a trailing path-separator, it would depend on further code in mkdirall to strip the trailing slash, then to perform the regex again in the next iteration. While regexes aren't ideal, we're already executing this one, so we may as well use it to match those situations as well (instead of executing it twice), to allow us to return early. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
reaper | ||
epoll.go | ||
fds.go | ||
filesys_deprecated_windows.go | ||
filesys_unix.go | ||
filesys_windows.go | ||
oom_linux_test.go | ||
oom_linux.go | ||
oom_unsupported.go | ||
socket_unix.go | ||
socket_windows.go | ||
userns_deprecated.go |