commit 5bc41be21c88e6710b72831745869d12a11b102c
parent 61ee83eb6cdefa5d06ebf857bd2379cb88054464
Author: Matsuda Kenji <info@mtkn.jp>
Date: Tue, 7 Nov 2023 12:37:10 +0900
add comment on fs.WalkDir
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/server.go b/server.go
@@ -354,6 +354,7 @@ func sWalk(ctx context.Context, s *Server, r *Req) {
cwdf := oldFid.File
err = nil
var n int
+ // TODO: replace this block with fs.WalkDir.
for i, name := range ifcall.Wnames {
cwdp = path.Join(cwdp, name)
cwdf, err = s.fs.OpenFile(cwdp, OREAD, 0)