文件操作 - array_iterator.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.4.0/lib/hocon/impl/array_iterator.rb
编辑文件内容
# encoding: utf-8 require_relative '../../hocon/impl' class Hocon::Impl::ArrayIterator def initialize(a) @a = a @index = 0 end def has_next? @index < @a.length end def next @index += 1 @a[@index - 1] end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件