    # File lib/fog/vsphere/requests/compute/get_folder.rb, line 5
            def get_folder(path, datacenter_name, type = nil)
              type ||= 'vm'

              # Cycle through all types of folders.
              case type
                when 'vm', :vm
                  # if you're a vm then grab the VM.
                  folder = get_raw_vmfolder(path, datacenter_name)
                  raise(Fog::Compute::Vsphere::NotFound) unless folder
                  folder_attributes(folder, datacenter_name)
                when 'network', :network
                  raise "not implemented"
                when 'datastore', :datastore
                  raise "not implemented"
                else
                  raise ArgumentError, "#{type} is unknown"
              end
            end