You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% ./main
Found /
open /Hello: file does not exist
Find failed open /Hello: file does not exist
If I change the Walk to "" then it works:
Found
Found Hello
Found Hello/There
Found Hello/There/Everyone
Similarly if I do Mkdir with a leading / and if the Walk is from "" then I get the opposite error:
MyFs.Mkdir("/Hello", 0777)
MyFs.Mkdir("/Hello/There", 0777)
MyFs.Create("/Hello/There/Everyone")
...
Found
Hello open Hello: file does not exist
Find failed open Hello: file does not exist
Even more fun is if the Mkdir is inconsistent! Starting from "/" returns things twice!
MyFs.Mkdir("Hello", 0777)
MyFs.Mkdir("/Hello/There", 0777)
MyFs.Create("/Hello/There/Everyone")
err := afero.Walk(MyFs, "/", find_walk)
...
Found /
Found /Hello
Found /Hello/There
Found /Hello/There/Everyone
Found /Hello
Found /Hello/There
Found /Hello/There/Everyone
...
The text was updated successfully, but these errors were encountered:
If I create a directory called
Hello
and then do a Walk from"/"
then the walk function is called with an erroropen /Hello: file does not exist
.Similarly if I create a directory called
/Hello
but do a Walk from""
then I get a similar error;open Hello: file does not exist
Clearly the Walk is finding the directory but then failing to get information about it!
The
Mkdir
andWalk
starting points must either both be anchored at/
or not.example code:
This returns the following:
If I change the Walk to
""
then it works:Similarly if I do
Mkdir
with a leading / and if the Walk is from "" then I get the opposite error:Even more fun is if the Mkdir is inconsistent! Starting from "/" returns things twice!
The text was updated successfully, but these errors were encountered: