Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

void com::trilead::ssh2::SFTPv3Client::mkdir ( String  dirName,
int  posixPermissions 
) throws IOException [inline]

Create a new directory.

Parameters:
dirNameSee the comment for the class for more details.
posixPermissionsthe permissions for this directory, e.g., "0700" (remember that this is octal noation). The server will likely apply a umask.
Exceptions:
IOException

Definition at line 945 of file SFTPv3Client.java.

References com::trilead::ssh2::sftp::AttribFlags::SSH_FILEXFER_ATTR_PERMISSIONS.

Referenced by mkdirs().

      {
            int req_id = generateNextRequestID();

            TypesWriter tw = new TypesWriter();
            tw.writeString(dirName, charsetName);
            tw.writeUINT32(AttribFlags.SSH_FILEXFER_ATTR_PERMISSIONS);
            tw.writeUINT32(posixPermissions);

            sendMessage(Packet.SSH_FXP_MKDIR, req_id, tw.getBytes());

            expectStatusOKMessage(req_id);
      }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index