June 21, 2013
3:21 p.m.
Apparently it is #resolve: '/tmp/data-dir/' asFileReference resolve: 'a/b/c/file.txt' asFileReference Way too many methods on the public classes of FileSystem are undocumented. On 21 Jun 2013, at 16:31, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi,
Does anyone know how I can/should concatenate 2 FileReference paths ?
Given /tmp/my-cache and a/b/data.txt I want to get /tmp/my-cache/a/b/data.txt in such a way that it is a correct, useable path. Next I want to do #ensureDirectory on the parent and write to the file.
'/tmp/my-cache' asFileReference / 'a/b/data.txt' asFileReference
does not work.
'/tmp/my-cache' asFileReference / 'a/b/data.txt'
works but is wrong internally.
I can't figure out the semantics of #,
TIA,
Sven