A very simple porting script today: If you move a Pharo image from MacOS/GNU Linux to Windows you could experiment issues with FileReferences file system not automatically converted. In that case, you can evaluate this code to update to the Windows platform and prevent annoying exceptions when accessing file references:
1 2 3 4 5 | | winFS | winFS := FileSystem allInstances detect: [ :fs | fs store isKindOf: WindowsStore ]. FileReference allInstancesDo: [ :f | f setFileSystem: winFS path: (winFS workingDirectory / f basename) path ]. |
0 comentarios:
Publicar un comentario