Github user albertshau commented on a diff in the pull request:

    https://github.com/apache/twill/pull/3#discussion_r76164629
  
    --- Diff: 
twill-common/src/main/java/org/apache/twill/filesystem/Location.java ---
    @@ -53,11 +54,42 @@
        * Atomically creates a new, empty file named by this abstract pathname 
if and only if a file with this name
        * does not yet exist.
        * @return {@code true} if the file is successfully create, {@code 
false} otherwise.
    -   * @throws IOException
    +   * @throws IOException if error encountered during creationg of the file
        */
       boolean createNew() throws IOException;
     
       /**
    +   * Atomically creates a new, empty file named by this abstract pathname 
if and only if a file with this name
    +   * does not yet exist. The newly created file will have permission set 
based on the given permission settings.
    +   *
    +   * @param permission A permission string. It has to be either a three 
digits or a nine characters string.
    +   *                   For the three digits string, it is similar to the 
UNIX permission numeric representation.
    +   *                   The first digit is the permission for owner, second 
digit is the permission for group and
    +   *                   the third digit is the permission for all.
    +   *                   For the nine characters string, it uses the format 
as specified by the
    +   *                   {@link PosixFilePermissions#fromString(String)} 
method.
    +   * @return {@code true} if the file is successfully create, {@code 
false} otherwise.
    +   * @throws IOException if error encountered during creationg of the file
    +   */
    +  boolean createNew(String permission) throws IOException;
    +
    +  /**
    +   * Returns the permissions of this {@link Location}. The permission 
string is a nine characters string as the format
    --- End diff --
    
    nine characters -> nine character


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to