文件操作 - hello_ractor.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
编辑文件内容
require 'ffi' module Foo extend FFI::Library ffi_lib FFI::Library::LIBC attach_function("cputs", "puts", [ :string ], :int) freeze end Ractor.new do Foo.cputs("Hello, World via libc puts using FFI in a Ractor") end.take
修改文件时间
将文件时间修改为当前时间的前一年
删除文件