We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo "aaa" > /tmp/report.txt
bucket, err := fileblob.OpenBucket("/tmp", nil) if err != nil { panic(err) } it := bucket.List(&blob.ListOptions{Prefix: "report.txt"}) for { obj, err := it.Next(context.TODO()) if err == io.EOF { break } else if err != nil { panic(err) } fmt.Println(obj.Key) }
report.txt
0.33.0
I am using Mac OS
The text was updated successfully, but these errors were encountered:
That exact thing works for me on Linux, and the unit tests should cover this as well (and run on MacOS).
Can you try again without the Prefix option and see what it prints? Does it work in a different directory other than /tmp?
Prefix
/tmp
You're going to have to help me debug this since I can't reproduce it.
Sorry, something went wrong.
I'm not sure why but changing /tmp to /private/tmp fixes the issue on MacOS
/private/tmp
What happens if you do
$ cd /tmp $ pwd $ ls
in a terminal on your MacOS? And same for /private/tmp.
lrwxr-xr-x@ 1 root wheel 11 Sep 2 00:35 tmp -> private/tmp
It looks like /tmp might be a symbolic link on MacOS; os.WalkDir does not follow symbolic links: https://pkg.go.dev/path/filepath#WalkDir
os.WalkDir
No branches or pull requests
Describe the bug
To Reproduce
echo "aaa" > /tmp/report.txt
Expected behavior
report.txt
Version
0.33.0
Additional context
I am using Mac OS
The text was updated successfully, but these errors were encountered: