fix(service/azfile): create parent dir correctly#3655
fix(service/azfile): create parent dir correctly#3655CookiePieWw wants to merge 1 commit intoapache:mainfrom CookiePieWw:main
Conversation
| while p != "/" { | ||
| p = get_parent(p); | ||
| dirs.push_front(p); | ||
| p = get_parent(p); |
There was a problem hiding this comment.
If input path is /a/b/c, will this be wrong?
There was a problem hiding this comment.
Thanks for review.
The initial intent here is to avoid puting "/" into the dirs, but ignoring the usage of the function.
Since the document shows that the Create Directory request requires to format the dir like ...path/to/dir..., the problem may lie in the trailing / of the input path. Is it a workable option to just trim the trailing /?
Got it here that the trailing slash will be auto removed. I'll try to figure the root cause out later.
Still I'm not sure the meaning of normalize the root from the issue since I haven't found something wrong about it. Could you give me a hint?
Thanks for your patience.
There was a problem hiding this comment.
Still I'm not sure the meaning of
normalize the rootfrom the issue since I haven't found something wrong about it. Could you give me a hint?
normalize root is about the code here:
But we have already done that. So it might not be the root cause.
There was a problem hiding this comment.
Perhaps we should directly test the azfile service for the error message.
resolve #3647.