    # File lib/chef/resource/file.rb, line 66
          def mode(arg=nil)
            set_or_return(
              :mode,
              arg,
              :callbacks => {
                "not in valid numeric range" => lambda { |m|
                  if m.kind_of?(String)
                    m =~ /^0/ || m="0#{m}"
                  end
                  Integer(m)<=07777 && Integer(m)>=0
                }
              }
            )
          end