Yo should use #pathString to obtain the full path of the file reference.
#asString isn't implemented in FileReference and it's inherited from
Object, which delegates it to the default implementation of
#printString, which isn't intented to be user friendly, and not for
conversion.
Regards!
Esteban A. Maringolo
2015-03-09 22:35 GMT-03:00 Sebastian Sastre <[hidden email]>:
> right, and what's the practical use of that?
>
> from mobile
>
>> On 09/03/2015, at 12:14, Sven Van Caekenberghe <[hidden email]> wrote:
>>
>> The thing before the @ indicates the kind of file system you are on (there are not just disk based files, but virtual in-memory ones, or in-zip ones).
>>
>>> On 09 Mar 2015, at 16:06, Sebastian Sastre <[hidden email]> wrote:
>>>
>>> A frequent thing to do is to work with files, so their paths.
>>>
>>> Take the image directory for example:
>>>
>>> `FileLocator imageDirectory resolve asString`
>>>
>>> 1) What’s the reason to make `aFileReference asString` to be different to what `aFileReference fullName` answers?
>>>
>>> 2) What’s the practical use of the current answer of `aFileReference asString`?
>>>
>>>
>>
>>
>
Free forum by Nabble | Edit this page |