[ 
https://issues.apache.org/jira/browse/VFS-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15595427#comment-15595427
 ] 

Laurent G commented on VFS-405:
-------------------------------

Hum, don't know if it worth a new ticket, so I posted this here :
According to me PosixPermissions.makeReadable(boolean, boolean) and 
PosixPermissions.computeNewPermissions(Map<Type, Boolean>) do not play well.
If server had let you create file so that both user and others can read and you 
want to restrict that readability to the user,
makeReadable will transmit just one possible change to computeNewPermissions, 
but it is the wrong one.
So to achieve what was indicated previously, one has to make two calls : one to 
remove readability to everyone and then one to give it back to the user.
Has I got it right ?

> Get/set the file permissions
> ----------------------------
>
>                 Key: VFS-405
>                 URL: https://issues.apache.org/jira/browse/VFS-405
>             Project: Commons VFS
>          Issue Type: Improvement
>            Reporter: Damian Waszak
>             Fix For: 2.1
>
>         Attachments: permissions-0001.patch, permissions-0002.patch, 
> permissions-0003.patch, permissions-0004.patch, permissions-0005.patch, 
> permissions-0006.patch, permissions-0007.patch, permissions-0008.patch
>
>
> Add possibility to change file permissions through VFS, similar to executing 
> *chmod* command on a file.
> Simple use case scenario would be to move a file to SFTP server, and then 
> retrieve and change the permissions, e.g. exececute chmod 0644.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to