Initializerswift-package-manager 6.0.3PackageModel
init(rule:path:)
Resource.swift:37init(rule: Rule, path: AbsolutePath)
init(rule: Rule, path: AbsolutePath)
s12PackageModel8ResourceV4rule4pathA2C4RuleO_6Basics12AbsolutePathVtcfc
What are these?SHC
import PackageModel
struct Resource
An individual resource file and its corresponding rule.
enum Rule
struct AbsolutePath
Represents an absolute file system path, independently of what (or whether anything at all) exists at that path in the file system at any given time. An absolute path always starts with a /
character, and holds a normalized string representation. This normalization is strictly syntactic, and does not access the file system in any way.
init(from decoder: any Decoder) throws
static let localizationDirectoryExtension: String
var destination: RelativePath { get throws }
The relative location of the resource in the resource bundle.
let path: AbsolutePath
The path of the resource file.
let rule: Rule
The rule associated with this resource.