[Pharo-project] FileSystem class>>separator?
Hi Right now if I want to get the separator I have to get the FileSystem instance FileSystem disk separator I was thinking that it would be good to be able to access separator without going to the instance. Does it make sense? Probably not since the separator depends on the store used and so separator would have to delegate anyway. Stef
the separator depends on the current platform... so one or the other way you'll have to go via an instance (repeating your statement :P). what did you have in mind? besides with FileReference you rarely have to use separator, unlike with FileDirectory where you had to do tons of operations on path strings. On 2012-11-01, at 22:07, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi
Right now if I want to get the separator I have to get the FileSystem instance
FileSystem disk separator
I was thinking that it would be good to be able to access separator without going to the instance. Does it make sense? Probably not since the separator depends on the store used and so separator would have to delegate anyway.
Stef
On Nov 1, 2012, at 10:42 PM, Camillo Bruni wrote:
the separator depends on the current platform... so one or the other way you'll have to go via an instance (repeating your statement :P).
what did you have in mind?
I was thinking aloud :)
besides with FileReference you rarely have to use separator, unlike with FileDirectory where you had to do tons of operations on path strings.
I was fixing my web generator and I do a lot of string concatenation :) Stef
On 2012-11-01, at 22:07, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi
Right now if I want to get the separator I have to get the FileSystem instance
FileSystem disk separator
I was thinking that it would be good to be able to access separator without going to the instance. Does it make sense? Probably not since the separator depends on the store used and so separator would have to delegate anyway.
Stef
On 2012-11-01, at 22:45, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Nov 1, 2012, at 10:42 PM, Camillo Bruni wrote:
the separator depends on the current platform... so one or the other way you'll have to go via an instance (repeating your statement :P).
what did you have in mind?
I was thinking aloud :)
besides with FileReference you rarely have to use separator, unlike with FileDirectory where you had to do tons of operations on path strings.
I was fixing my web generator and I do a lot of string concatenation :)
if you do filesystem stuff you don't need the separator... 'foo' asFileReference / 'bar' / 'goo' and '/foo/bar/' asFileReference will work regardless of the underlying filesystem unix/win/mac
participants (2)
-
Camillo Bruni -
Stéphane Ducasse