On Thu, Nov 9, 2017 at 10:12 PM, Norbert Hartl <[email protected]> wrote:
> is there a good explanation why > > ‚foo‘ asFileReference parent basename > > gives ‚/‘ ? > I can only answer making one of the following assumtions - You've launched your image doing a double click - or by doing drag and drop on a vm - or from the command line from the root '/' directory In any of those three cases, the operating system will assign '/' as working directory. Thus any file created from a relative path will be relative to it. Check also: 'foo‘ asFileReference parent = FileSystem workingDirectory. 'foo‘ asFileReference = FileSystem workingDirectory / 'foo'. and: '/‘ asFileReference = FileSystem workingDirectory. -- Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>* *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
