Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit d8d5f04

Browse files
committed
Add fullName to FileResourceType
1 parent 7a75ee5 commit d8d5f04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: Library/Core/FileResource.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public protocol FileResourceType {
2121
}
2222

2323
public extension FileResourceType {
24+
/// Name of the file on disk with the pathExtension
25+
var fullName: String {
26+
return [name, pathExtension].joinWithSeparator(".")
27+
}
28+
2429
/**
2530
Returns the full pathname for this resource.
2631

@@ -44,7 +49,7 @@ public struct FileResource: FileResourceType {
4449
/// Bundle this file is in
4550
public let bundle: NSBundle
4651

47-
/// Name of the file file on disk
52+
/// Name of the file on disk, without the pathExtension
4853
public let name: String
4954

5055
/// Extension of the file on disk

0 commit comments

Comments
 (0)