org.apache.camel.component.file.remote
Class FtpUtils

java.lang.Object
  extended by org.apache.camel.component.file.remote.FtpUtils

public final class FtpUtils
extends Object

Various FTP utils.


Method Summary
static String compactPath(String path)
          Compacts a path by stacking it and reducing .., and uses OS specific file separators (eg File.separator).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compactPath

public static String compactPath(String path)
Compacts a path by stacking it and reducing .., and uses OS specific file separators (eg File.separator).

Important: This implementation works for the camel-ftp component for various FTP clients and FTP servers using different platforms and whatnot. This implementation has been working for many Camel releases, and is included here to restore patch compatibility with the Camel releases.



Apache Camel