[Pharo-dev] Should we always put application file paths into FileLocator?

Guillermo Polito guillermopolito at gmail.com
Tue Oct 3 07:54:18 EDT 2017


Could you write a blog post? :D

- What is the good practice
- extending FileLocator
- managing paths in a platform independent way (what to extend for unix,
mac, windows, default values for unknown platforms...)

On Tue, Oct 3, 2017 at 12:52 PM, Denis Kudriashov <dionisiydk at gmail.com>
wrote:

> Ok. No objections yet.
> I will prepare pull requests
>
> 2017-10-03 12:04 GMT+02:00 Guillermo Polito <guillermopolito at gmail.com>:
>
>> Yes yes yes
>>
>> On Fri, Sep 29, 2017 at 3:58 PM, Stephane Ducasse <
>> stepharo.self at gmail.com> wrote:
>>
>>> Hi denis
>>>
>>> I like it!.
>>>
>>> Stef
>>>
>>> On Fri, Sep 29, 2017 at 10:31 AM, Denis Kudriashov <dionisiydk at gmail.com>
>>> wrote:
>>> > Hi.
>>> >
>>> > Many times I was trying to find "global" files of some packages in
>>> system.
>>> >
>>> > For example do you know how to find epicea session logs?
>>> > There is class side method for this at EpMonitor:
>>> >
>>> > EpMonitor logsDirectory
>>> >
>>> > Is it easy to find when you never look at it? No.
>>> >
>>> > Do you know how to find sources file? There is message in Smalltalk
>>> global:
>>> >
>>> > Smalltalk sourcesFile
>>> >
>>> > Is it easy to find? No.
>>> >
>>> > And there are many other examples.
>>> >
>>> > But if you read about FileSystem library. You know the common place
>>> where to
>>> > find well known files. It is FileLocator.
>>> > For example changes file is here:
>>> >
>>> > FileLocator changes.
>>> >
>>> > So my idea is to introduce kind of pattern, the good style, how to
>>> access
>>> > global application files: they should be in FileLocator as extensions.
>>> > Then it would be super easy to find files of any applications.
>>> >
>>> > What do you think?
>>> >
>>> > If it is good idea then we should fix current places in system to
>>> follow
>>> > this pattern.
>>> >
>>> > Best regards,
>>> > Denis
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> 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 <+33%206%2052%2070%2066%2013>
>>
>
>


-- 



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171003/8e95f89b/attachment-0002.html>


More information about the Pharo-dev mailing list