<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSGenericURLResource",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSGenericURLResource"
  },
  "title" : "FSGenericURLResource"
}
-->

# FSGenericURLResource

A resource that represents an abstract URL.

```
class FSGenericURLResource
```

## Overview

An `FSGenericURLResource` is a completely abstract resource.
The only reference to its contents is a single URL, the contents of which are arbitrary.
This URL might represent a PCI locator string like `/pci@f0000000/usb@5`, or some sort of network address for a remote file system.
FSKit leaves interpretation of the URL and its contents entirely up to your implementation.

Use the `Info.plist` key `FSSupportedSchemes` to provide an array of case-insensitive URL schemes that your implementation supports.
The following example shows how a hypothetical `FSGenericURLResource` implementation declares support for the `rsh` and `ssh` URL schemes:

```
<key>FSSupportedSchemes</key>
<array>
    <string>rsh</string>
    <string>ssh</string>
</array>
```

## Topics

### Creating a generic URL resource

[`init(url:)`](/documentation/FSKit/FSGenericURLResource/init(url:)-2cmhi)

Creates a generic URL resource with the given URL.

### Accessing resource properties

[`url`](/documentation/FSKit/FSGenericURLResource/url)

The URL represented by the resource.



---

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)