Skip to content

Commit 262604e

Browse files
committed
Add missing conversion method on String, fixes #7
The message was already understood by FSDirectoryEntry, FSLocator, and FSReference. In general, asFileReference is probably even the better selector than asReference because the latter is so unspecific about what kind of reference it means.
1 parent fc71c7e commit 262604e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*fs-core-converting
2+
asFileReference
3+
"Return an FSReference on disk"
4+
^ FileSystem disk referenceTo: self

src/FS-Core.package/String.extension/methodProperties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"instance" : {
55
"asDirectory" : "CamilloBruni 1/19/2012 14:20",
66
"asFile" : "CamilloBruni 1/19/2012 14:20",
7+
"asFileReference" : "jr 11/8/2021 21:18",
78
"asPath" : "jr 3/2/2017 17:39",
89
"asPathWith:" : "cwp 11/21/2009 11:30",
910
"asReference" : "jr 3/2/2017 17:39",

0 commit comments

Comments
 (0)