You are viewing a plain text version of this content. The canonical link for it is here.
Posted to distributedlog-dev@bookkeeper.apache.org by adamtracymartin <gi...@git.apache.org> on 2017/01/06 03:04:32 UTC

[GitHub] incubator-distributedlog pull request #104: DL-174: added getParent method t...

GitHub user adamtracymartin opened a pull request:

    https://github.com/apache/incubator-distributedlog/pull/104

    DL-174: added getParent method to Utils to replace usage of File.getParent which changes / to \ on Windows

    \u2026ich changes / to \ in Windows.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adamtracymartin/incubator-distributedlog DL-174

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-distributedlog/pull/104.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #104
    
----
commit ba70dec41ae7cdac839f01048459f7eef893f6f8
Author: adamtracymartin <at...@yahoo.com>
Date:   2017-01-06T03:03:01Z

    added getParent method to Utils to replace usage of File.getParent which changes / to \ in Windows.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-distributedlog pull request #104: DL-174: added getParent method t...

Posted by leighst <gi...@git.apache.org>.
Github user leighst commented on a diff in the pull request:

    https://github.com/apache/incubator-distributedlog/pull/104#discussion_r98693213
  
    --- Diff: distributedlog-core/src/main/java/com/twitter/distributedlog/util/Utils.java ---
    @@ -604,4 +604,35 @@ public static void closeQuietly(@Nullable AsyncCloseable closeable) {
                     executorService).map(VoidFunctions.LIST_TO_VOID_FUNC);
         }
     
    +    /**
    +     * Gets the parent of a path.
    +     *
    +     * @param path
    +     *            path to get the parent of
    +     * @return parent of the path or null if no parent exists.
    +     */
    +    public static String getParent(final String path) {
    --- End diff --
    
    could we add zk or unix to the name? 
    
    ex. getZkParent, just to be really clear


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-distributedlog pull request #104: DL-174: added getParent method t...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-distributedlog/pull/104


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---