---
title: FSGenericURLResource
framework: fskit
role: symbol
role_heading: Class
path: fskit/fsgenericurlresource
---

# FSGenericURLResource

A resource that represents an abstract URL.

## Declaration

```swift
class FSGenericURLResource
```

## Overview

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:)](fskit/fsgenericurlresource/init(url:)-2cmhi.md)

### Accessing resource properties

- [url](fskit/fsgenericurlresource/url.md)

### Initializers

- [init(URL:)](fskit/fsgenericurlresource/init(url:)-3957q.md)

## Relationships

### Inherits From

- [FSResource](fskit/fsresource.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Resources

- [FSResource](fskit/fsresource.md)
- [FSBlockDeviceResource](fskit/fsblockdeviceresource.md)
- [FSPathURLResource](fskit/fspathurlresource.md)
