||"To be or not to be" – Shakespeare
Last updated at 1:55 pm UTC on 12 March 2018
(FileSystem workingDirectory / '..' / 'public') ensureCreateDirectory
(FileSystem disk workingDirectory parent / 'public') ensureCreateDirectory .
Note that "workingDirectory" points to the folder from where Pharo 7 was launched. In Pharo 6 there is no distinction between workingDirectory and imageDirectory.
dir := FileSystem disk workingDirectory parent.
(dir / 'myFile.txt') writeStreamDo: [ :out | out << 'Hello world!' ].