Implemented the "folder" property for the File enumeration in the library target.
This commit is contained in:
1 parent
5f958c6f4c
commit
6fe45db4f1
2 files changed
+27
-1
No files matched your search
@@ -26,7 +26,13 @@ extension File {
|
||||
|
||||
var filePath: String {
|
||||
switch self {
|
||||
default: fileName
|
||||
default: folder.path + fileName
|
||||
}
|
||||
}
|
||||
|
||||
var folder: Folder {
|
||||
switch self {
|
||||
default: .root
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user