---
title: "changeCurrentFolderForward(toPath:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/obexfiletransferservices/changecurrentfolderforward(topath:)"
---

# changeCurrentFolderForward(toPath:)

Change the remote path

## Declaration

```swift
func changeCurrentFolderForward(toPath inDirName: String!) -> OBEXError
```

## Parameters

- `inDirName`: The name of the remote folder to be set as current

## Return Value

Return Value kOBEXSuccess, kOBEXSessionBusyError, or kOBEXBadArgumentError initially. Further results returned through the fileTransferServicesPathChangeComplete: delegate method if initially successful.

## Discussion

Discussion Equivalent to ‘cd dirName’.
