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

void com::trilead::ssh2::SFTPv3Client::mkdirs ( String  path,
int  posixPermission 
) throws IOException [inline]

Makes sure that the directory exists, by creating it if necessary.

Definition at line 1414 of file SFTPv3Client.java.

References _stat(), com::trilead::ssh2::SFTPv3FileAttributes::isDirectory(), and mkdir().

        SFTPv3FileAttributes atts = _stat(path);
        if (atts!=null && atts.isDirectory())

        int idx = path.lastIndexOf("/");
        if (idx>0)
            mkdirs(path.substring(0,idx), posixPermission);

        try {
            mkdir(path, posixPermission);
        } catch (IOException e) {
            throw (IOException)new IOException("Failed to mkdir "+path).initCause(e);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index