On 4/10/20 4:15 PM, Ian Lance Taylor wrote:
I'm not proud. Here is an example program for which os.Open(dirname)
succeeds but ioutil.ReadDir(dirname) fails. You may have to adjust
pathMax and nameMax for your system. Whether you actually want to use
this technique is left to you.
Thank you. I hadn't thought of exploiting pathname limits.
I'll probably use Rob's solution presented a couple messages down, but I
appreciate hearing this solution too.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/e89beec4-dee9-9e2f-2396-2461af085594%40juniper.net.