We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a75ee5 commit d8d5f04Copy full SHA for d8d5f04
Library/Core/FileResource.swift
@@ -21,6 +21,11 @@ public protocol FileResourceType {
21
}
22
23
public extension FileResourceType {
24
+ /// Name of the file on disk with the pathExtension
25
+ var fullName: String {
26
+ return [name, pathExtension].joinWithSeparator(".")
27
+ }
28
+
29
/**
30
Returns the full pathname for this resource.
31
@@ -44,7 +49,7 @@ public struct FileResource: FileResourceType {
44
49
/// Bundle this file is in
45
50
public let bundle: NSBundle
46
51
47
- /// Name of the file file on disk
52
+ /// Name of the file on disk, without the pathExtension
48
53
public let name: String
54
55
/// Extension of the file on disk
0 commit comments