activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Feb 19, 2026

GetFilesandFolders

Retrieves a list of files and folders from the specified Google Drive location.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

public IReadOnlyCollection<IDriveItem> GetFilesAndFolders(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)
public IReadOnlyCollection<IDriveItem> GetFilesAndFolders(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)

Parameters

parent IFolder (Optional) : The location on Google Drive where to search for files and folders. If null, the root folder is used for search.

starredOnly Boolean Optional : Specifies whether to return only starred files and folders.

filter DriveItemFilter Optional : Specifies additional filters for the query.

maxResults Int32 (Optional) : The maximum number of files and folders to return.

Return value

IReadOnlyCollection<IDriveItem> - The list of files and folders retrieved from the specified location

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.