<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.3.0 - 10.11.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/CFFTPCreateParsedResourceListing(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@F@CFFTPCreateParsedResourceListing"
  },
  "title" : "CFFTPCreateParsedResourceListing(_:_:_:_:)"
}
-->

# CFFTPCreateParsedResourceListing(_:_:_:_:)

Parses an FTP listing to a dictionary.

```
func CFFTPCreateParsedResourceListing(_ alloc: CFAllocator?, _ buffer: UnsafePointer<UInt8>, _ bufferLength: CFIndex, _ parsed: UnsafeMutablePointer<Unmanaged<CFDictionary>?>?) -> CFIndex
```

## Parameters

`alloc`

The allocator to use to allocate memory for the dictionary. Pass `NULL` or kCFAllocatorDefault to use the current default allocator.

`buffer`

A pointer to a buffer holding zero or more lines of resource listing.

`bufferLength`

The length in bytes of the buffer pointed to by `buffer`.

`parsed`

Upon return, contains a dictionary containing the parsed resource information. If parsing fails, a `NULL` pointer is returned.

## Return Value

The number of bytes parsed, `0` if no bytes were available for parsing, or `-1` if parsing failed.

## Discussion

This function examines the contents of buffer as an FTP directory listing and parses into a CFDictionary the information for a single file or folder. The CFDictionary is returned in the `parsed` parameter, and the number of bytes used from buffer is returned.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)