    # File lib/chef/scan_access_control.rb, line 119
        def current_mode
          case new_resource.mode
          when String, nil
            (stat.mode & 007777).to_s(8)
          when Integer
            stat.mode & 007777
          else
            Chef::Log.error("The `mode` parameter of the #@new_resource resource is set to an invalid value (#{new_resource.mode.inspect})")
            raise ArgumentError, "Invalid value #{new_resource.mode.inspect} for `mode` on resource #@new_resource"
          end
        end