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

Workflow activities

Last updated Mar 13, 2026

GetResourceForLocalPath

Extenstion method

Note:

In C#, you can call this method as an instance method on any object of type ISystemService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Build a resource from the local path of the file or folder.

Definition

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

GetResourceForLocalPath

public static IResource GetResourceForLocalPath(
    this ISystemService system,
    string path,
    PathType pathType
)
public static IResource GetResourceForLocalPath(
    this ISystemService system,
    string path,
    PathType pathType
)

path String : The local path of the file or folder.

pathType PathType : The type of the resource.

Return value

IResource

Returns an IResource object for a local path.

  • Definition
  • GetResourceForLocalPath
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated