Search in sources :

Example 11 with SFTPv3FileAttributes

use of com.trilead.ssh2.SFTPv3FileAttributes in project Payara by payara.

the class SFTPClient method chmod.

public void chmod(String path, int permissions) throws IOException {
    path = normalizePath(path);
    SFTPv3FileAttributes atts = new SFTPv3FileAttributes();
    atts.permissions = permissions;
    setstat(path, atts);
}
Also used : SFTPv3FileAttributes(com.trilead.ssh2.SFTPv3FileAttributes)

Aggregations

TypesWriter (com.trilead.ssh2.packets.TypesWriter)6 SFTPv3FileAttributes (com.trilead.ssh2.SFTPv3FileAttributes)5 TypesReader (com.trilead.ssh2.packets.TypesReader)3 IOException (java.io.IOException)2 Node (com.sun.enterprise.config.serverbeans.Node)1 Nodes (com.sun.enterprise.config.serverbeans.Nodes)1 WindowsRemoteFile (com.sun.enterprise.util.cluster.windows.io.WindowsRemoteFile)1 WindowsRemoteFileSystem (com.sun.enterprise.util.cluster.windows.io.WindowsRemoteFileSystem)1 WindowsException (com.sun.enterprise.util.cluster.windows.process.WindowsException)1 SFTPv3DirectoryEntry (com.trilead.ssh2.SFTPv3DirectoryEntry)1 IOException2 (hudson.util.IOException2)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 SSHLauncher (org.glassfish.cluster.ssh.launcher.SSHLauncher)1 SFTPClient (org.glassfish.cluster.ssh.sftp.SFTPClient)1 DcomInfo (org.glassfish.cluster.ssh.util.DcomInfo)1