Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: RemoveAll doesn't work on Plan 9? #9990
The "gomote rm" command just runs os.RemoveAll. But I had to run it several times before it completed without error.
Is deleting a file async on Plan 9? If so, that's not Go semantics.
No, the system calls are all synchronous on Plan 9.
This issue is related to ramfs. It doesn't happen on Fossil.
Like Fossil, the ramfs file server can return a "directory not empty" error,
However, RemoveAll, like the rm tool on Plan 9, always removes the
I suppose there is some subtle difference between Fossil and ramfs
Well, if plan9's filesystems are inconsistent, I think the Go os package should have workarounds for popular filesystems (like ramfs) and do the Go-like behavior and have os.RemoveAll actually work, doing whatever extra work is required to make Plan 9 happy.