Codota Logo
FTPSConnection.getWorkingDirectory
Code IndexAdd Codota to your IDE (free)

How to use
getWorkingDirectory
method
in
org.pentaho.di.job.entries.ftpsget.FTPSConnection

Best Java code snippets using org.pentaho.di.job.entries.ftpsget.FTPSConnection.getWorkingDirectory (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

/**
 *
 * this method is used to return filenames in working directory
 *
 * @return filenames
 * @throws KettleException
 */
public String[] getFileNames() throws KettleException {
 ArrayList<String> list = null;
 try {
  List<FTPFile> fileList = getFileList( getWorkingDirectory() );
  list = new ArrayList<String>();
  Iterator<FTPFile> it = fileList.iterator();
  while ( it.hasNext() ) {
   FTPFile file = it.next();
   if ( !file.isDirectory() ) {
    list.add( file.getName() );
   }
  }
 } catch ( Exception e ) {
  throw new KettleException( BaseMessages.getString( PKG, "JobFTPS.Error.RetrievingFilenames" ), e );
 }
 return list == null ? null : list.toArray( new String[list.size()] );
}
origin: pentaho/pentaho-kettle

/**
 *
 * this method is used to delete a file in remote host
 *
 * @param filename
 *          Name of file on remote host to delete
 * @throws KettleException
 */
public void deleteFile( String filename ) throws KettleException {
 try {
  this.connection.deleteFile( new FTPFile( getWorkingDirectory(), filename ) );
 } catch ( Exception e ) {
  throw new KettleException( BaseMessages.getString( PKG, "JobFTPS.Error.DeletingFile", filename ), e );
 }
}
origin: pentaho/pentaho-kettle

pwdFolder = ftpsclient.getWorkingDirectory();
origin: pentaho/pentaho-kettle

downloadFiles( connection, connection.getWorkingDirectory(), pattern, result );
origin: pentaho/pentaho-kettle

logDetailed( BaseMessages.getString( PKG, "JobEntryFTPS.LoggedIn", connection.getUserName() ) );
logDetailed( BaseMessages.getString( PKG, "JobEntryFTPS.WorkingDirectory", connection
 .getWorkingDirectory() ) );
origin: pentaho/pentaho-kettle

logDetailed( BaseMessages.getString( PKG, "JobFTPSPUT.WorkingDirectory", connection.getWorkingDirectory() ) );
org.pentaho.di.job.entries.ftpsgetFTPSConnectiongetWorkingDirectory

Javadoc

Returns the working directory

Popular methods of FTPSConnection

  • connect
    this method is used to connect to a remote host
  • <init>
  • changeDirectory
    this method change FTP working directory
  • disconnect
    this method is used to disconnect the connection
  • isDirectoryExists
    Checks if a directory exists
  • setBinaryMode
    public void setBinaryMode(boolean type) this method is used to set the transfer type to binary
  • setProxyHost
    this method is used to set the proxy host
  • setProxyPassword
    this method is used to set the proxy password
  • setProxyPort
    this method is used to set the proxy port
  • setProxyUser
    this method is used to set the proxy username
  • createDirectory
    this method is used to create a directory in remote host
  • deleteFile
    this method is used to delete a file in remote host
  • createDirectory,
  • deleteFile,
  • downloadFile,
  • getConnectionType,
  • getConnectionTypeByCode,
  • getConnectionTypeByDesc,
  • getConnectionTypeCode,
  • getConnectionTypeDesc,
  • getFileList

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now