WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
85720
[webkitpy] FileSystem should have a pathsep abstraction
https://bugs.webkit.org/show_bug.cgi?id=85720
Summary
[webkitpy] FileSystem should have a pathsep abstraction
Raphael Kubo da Costa (:rakuco)
Reported
2012-05-05 14:08:14 PDT
As discussed in
https://bugs.webkit.org/show_bug.cgi?id=85697#c2
, since we already have a `sep' abstraction in the FileSystem class, it would also be good to have one for os.pathsep so that we're able to unittest changes such as the one in <
http://trac.webkit.org/changeset/116229
>
Attachments
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2012-05-05 17:13:29 PDT
My initial leaning is to put this elsewhere, since it's (IMO) more path of the environment than part of the filesystem. We don't really have a good abstraction for the environment, though, or a more general place to stuff system-specific things. I suppose you could just make it be a field on SystemHost. Or maybe Executive? That said, I don't feel strongly about it one way or another.
Eric Seidel (no email)
Comment 2
2012-05-05 17:20:47 PDT
I made an Environment abstraction. Did I never land it?
Raphael Kubo da Costa (:rakuco)
Comment 3
2012-05-06 19:35:29 PDT
(In reply to
comment #2
)
> I made an Environment abstraction. Did I never land it?
You did, but it doesn't seem to have many features. Should we move sep from FileSystem to Environment and add pathsep to it? We may be talking about different kinds of environment abstractions, though -- to me, Environment is about environment variables and things we can change, whereas information such as pathsep and sep never changes in a system.
Dirk Pranke
Comment 4
2012-05-07 12:08:35 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > I made an Environment abstraction. Did I never land it? > > You did, but it doesn't seem to have many features. Should we move sep from FileSystem to Environment and add pathsep to it? > > We may be talking about different kinds of environment abstractions, though -- to me, Environment is about environment variables and things we can change, whereas information such as pathsep and sep never changes in a system.
'sep' is clearly a filesystem-related concept, since it is used by things like filesystem.join(). 'pathsep' is less clear to me; nothing in a filesystem actually uses or requires path separators. The only thing that does are things in the environment.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug