We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89263e1 commit b4a42b2Copy full SHA for b4a42b2
repository/STON-Core.package/FileReference.extension/instance/stonOn..st
@@ -2,8 +2,10 @@
2
stonOn: stonWriter
3
self fileSystem isDiskFileSystem
4
ifTrue: [ | diskFilePath |
5
- diskFilePath := String streamContents: [ :out |
6
- filesystem printPath: path on: out ].
+ "in order to get $/ as delimiter and $. as working directory on all platforms"
+ diskFilePath := path isWorkingDirectory
7
+ ifTrue: [ '.' ]
8
+ ifFalse: [ path pathString ].
9
stonWriter
10
writeObject: self
11
named: STONFileReference stonName
0 commit comments