[ https://issues.apache.org/jira/browse/TWILL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15436198#comment-15436198 ]
ASF GitHub Bot commented on TWILL-188: -------------------------------------- Github user chtyim commented on a diff in the pull request: https://github.com/apache/twill/pull/3#discussion_r76174743 --- 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. --- End diff -- fixed. > LocationFactory should have options to accept permission for create > ------------------------------------------------------------------- > > Key: TWILL-188 > URL: https://issues.apache.org/jira/browse/TWILL-188 > Project: Apache Twill > Issue Type: Improvement > Reporter: Shankar Selvam > Assignee: Terence Yim > Fix For: 0.8.0 > > > Currently LocationFactory and Location API doesn't have a way to specify the > permission to use for creating the path. we need a way to specify the > permission for create and other operations on Location -- This message was sent by Atlassian JIRA (v6.3.4#6332)