Tabnine Logo
SFTPEngine.rename
Code IndexAdd Tabnine to your IDE (free)

How to use
rename
method
in
net.schmizz.sshj.sftp.SFTPEngine

Best Java code snippets using net.schmizz.sshj.sftp.SFTPEngine.rename (Showing top 4 results out of 315)

origin: hierynomus/sshj

public void rename(String oldpath, String newpath)
    throws IOException {
  engine.rename(oldpath, newpath);
}
origin: com.hierynomus/sshj

public void rename(String oldpath, String newpath)
    throws IOException {
  engine.rename(oldpath, newpath);
}
origin: net.schmizz/sshj

public void rename(String oldpath, String newpath)
    throws IOException {
  engine.rename(oldpath, newpath);
}
origin: iterate-ch/cyberduck

@Override
public Path move(final Path file, final Path renamed, TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {
  try {
    if(status.isExists()) {
      delete.delete(Collections.singletonList(renamed), connectionCallback, callback);
    }
    session.sftp().rename(file.getAbsolute(), renamed.getAbsolute());
    // Copy original file attributes
    return new Path(renamed.getParent(), renamed.getName(), renamed.getType(), new PathAttributes(file.attributes()));
  }
  catch(IOException e) {
    throw new SFTPExceptionMappingService().map("Cannot rename {0}", e, file);
  }
}
net.schmizz.sshj.sftpSFTPEnginerename

Popular methods of SFTPEngine

  • open
  • makeDir
  • stat
  • <init>
  • canonicalize
  • close
  • getOperativeProtocolVersion
  • getPathHelper
  • getSubsystem
  • init
  • lstat
  • openDir
  • lstat,
  • openDir,
  • readLink,
  • remove,
  • removeDir,
  • request,
  • setAttributes,
  • symlink,
  • doRequest

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now