Skip to content

Commit

Permalink
Fix FileReference>>#stonOn: to always use a platform independent repr…
Browse files Browse the repository at this point in the history
…esentation
  • Loading branch information
Sven Van Caekenberghe committed Nov 19, 2019
1 parent 89263e1 commit b4a42b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
stonOn: stonWriter
self fileSystem isDiskFileSystem
ifTrue: [ | diskFilePath |
diskFilePath := String streamContents: [ :out |
filesystem printPath: path on: out ].
"in order to get $/ as delimiter and $. as working directory on all platforms"
diskFilePath := path isWorkingDirectory
ifTrue: [ '.' ]
ifFalse: [ path pathString ].
stonWriter
writeObject: self
named: STONFileReference stonName
Expand Down

0 comments on commit b4a42b2

Please sign in to comment.