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 80ebdd2 commit e51b30e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/STON-Core/FileReference.extension.st
Expand Up @@ -9,8 +9,10 @@ FileReference >> stonContainSubObjects [
FileReference >> 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 e51b30e

Please sign in to comment.