<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>85720</bug_id>
          
          <creation_ts>2012-05-05 14:08:14 -0700</creation_ts>
          <short_desc>[webkitpy] FileSystem should have a pathsep abstraction</short_desc>
          <delta_ts>2012-05-07 12:08:35 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raphael Kubo da Costa (:rakuco)">rakuco</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dpranke</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>617040</commentid>
    <comment_count>0</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-05-05 14:08:14 -0700</bug_when>
    <thetext>As discussed in https://bugs.webkit.org/show_bug.cgi?id=85697#c2 , since we already have a `sep&apos; abstraction in the FileSystem class, it would also be good to have one for os.pathsep so that we&apos;re able to unittest changes such as the one in &lt;http://trac.webkit.org/changeset/116229&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617058</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-05-05 17:13:29 -0700</bug_when>
    <thetext>My initial leaning is to put this elsewhere, since it&apos;s (IMO) more path of the environment than part of the filesystem. We don&apos;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&apos;t feel strongly about it one way or another.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617061</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-05-05 17:20:47 -0700</bug_when>
    <thetext>I made an Environment abstraction.  Did I never land it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617300</commentid>
    <comment_count>3</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-05-06 19:35:29 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I made an Environment abstraction.  Did I never land it?

You did, but it doesn&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617805</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-05-07 12:08:35 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I made an Environment abstraction.  Did I never land it?
&gt; 
&gt; You did, but it doesn&apos;t seem to have many features. Should we move sep from FileSystem to Environment and add pathsep to it?
&gt; 
&gt; 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.

&apos;sep&apos; is clearly a filesystem-related concept, since it is used by things like filesystem.join().

&apos;pathsep&apos; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>