There is an ambiguity in the use of the method `fileutil.CreateDir`
J404J opened this issue · comments
404 commented
There is an ambiguity in fileutil.CreateDir
, the incoming path must end with /
.
I input /a/b/c
but create /a/b
.
Since the function's name is CreateDir
, the input params is dir not a file.
It is recommended that the semantics of the function be consistent with the mkdir -p
command of the operating system, that will not cause ambiguity.
mkdir -p /a/b/c
will create /a/b/c
not /a/b
404 commented
remove path.Dir(absPath)
-> os.MkdirAll(absPath, os.ModePerm)
duke-git commented
okay, will fix it in next release.
404 commented
okay, will fix it in next release.
thank you!
duke-git commented
fixed in v2.2.4
404 commented
fixed in v2.2.4
thank you!