    # File lib/chef/provider/remote_directory.rb, line 125
          def resource_for_directory(path)
            dir = Chef::Resource::Directory.new(path, run_context)
            dir.cookbook_name = @new_resource.cookbook || @new_resource.cookbook_name
            dir.mode(@new_resource.mode)
            dir.group(@new_resource.group)
            dir.owner(@new_resource.owner)
            dir.recursive(true)
            dir
          end