---
title: "IOBluetoothGetUniqueFileNameAndPath(_:_:)"
framework: IOBluetooth
role: symbol
role_heading: Function
path: "iobluetooth/iobluetoothgetuniquefilenameandpath(_:_:)"
---

# IOBluetoothGetUniqueFileNameAndPath(_:_:)

## Declaration

```swift
func IOBluetoothGetUniqueFileNameAndPath(_ inName: String!, _ inPath: String!) -> String!
```

## Parameters

- `inName`: Name of file that needs unique name in the specified path.
- `inPath`: Path you are trying to put file into.

## Return Value

Return Value String with a unique name appended on it for the provided path.

## Discussion

Discussion When passed a VALID filename and a VALID path, this routine will return you a the path with the name appended onto it. If it already exist, it will insert a #1, #2, etc. Example: If you pass @“TestFile.txt” and @”~/Documents”, you will get @“~Documents/TestFile.txt”. If one already exists, you will be returned: @“~Documents/TestFile #1.txt”.

## See Also

### Miscellaneous

- [IOBluetoothFindNumberOfRegistryEntriesOfClassName(_:)](iobluetooth/iobluetoothfindnumberofregistryentriesofclassname(_:).md)
- [IOBluetoothIsFileAppleDesignatedPIMData(_:)](iobluetooth/iobluetoothisfileappledesignatedpimdata(_:).md)
- [IOBluetoothNSStringFromDeviceAddress(_:)](iobluetooth/iobluetoothnsstringfromdeviceaddress(_:).md)
- [IOBluetoothNSStringToDeviceAddress(_:_:)](iobluetooth/iobluetoothnsstringtodeviceaddress(_:_:).md)
- [IOBluetoothNumberOfAvailableHIDDevices()](iobluetooth/iobluetoothnumberofavailablehiddevices().md)
- [IOBluetoothNumberOfKeyboardHIDDevices()](iobluetooth/iobluetoothnumberofkeyboardhiddevices().md)
- [IOBluetoothNumberOfPointingHIDDevices()](iobluetooth/iobluetoothnumberofpointinghiddevices().md)
- [IOBluetoothNumberOfTabletHIDDevices()](iobluetooth/iobluetoothnumberoftablethiddevices().md)
