Skip to content

Commit b4a42b2

Browse files
committed
Fix FileReference>>#stonOn: to always use a platform independent representation
1 parent 89263e1 commit b4a42b2

File tree

1 file changed

+4
-2
lines changed
  • repository/STON-Core.package/FileReference.extension/instance

1 file changed

+4
-2
lines changed

repository/STON-Core.package/FileReference.extension/instance/stonOn..st

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
stonOn: stonWriter
33
self fileSystem isDiskFileSystem
44
ifTrue: [ | diskFilePath |
5-
diskFilePath := String streamContents: [ :out |
6-
filesystem printPath: path on: out ].
5+
"in order to get $/ as delimiter and $. as working directory on all platforms"
6+
diskFilePath := path isWorkingDirectory
7+
ifTrue: [ '.' ]
8+
ifFalse: [ path pathString ].
79
stonWriter
810
writeObject: self
911
named: STONFileReference stonName

0 commit comments

Comments
 (0)