mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
os: implement os.(*File).ReadDir for -target=wasi
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
This commit is contained in:
committed by
Ron Evans
parent
666312f63f
commit
ee3af40cab
+2
-1
@@ -187,7 +187,8 @@ func (f *File) Close() (err error) {
|
||||
} else {
|
||||
// Some platforms manage extra state other than the system handle which
|
||||
// needs to be released when the file is closed. For example, darwin
|
||||
// files have a DIR object holding a dup of the file descriptor.
|
||||
// files have a DIR object holding a dup of the file descriptor, and
|
||||
// linux files hold a buffer which needs to be released to a pool.
|
||||
//
|
||||
// These platform-specific logic is provided by the (*file).close method
|
||||
// which is why we do not call the handle's Close method directly.
|
||||
|
||||
Reference in New Issue
Block a user