dir -> directory

This commit is contained in:
Mark Fisher
2011-09-02 08:24:47 -04:00
parent 962e089bf0
commit 754917bb4e
9 changed files with 272 additions and 251 deletions

View File

@@ -27,6 +27,8 @@ import org.springframework.integration.file.remote.session.SessionFactory;
import org.springframework.integration.ftp.session.FtpFileInfo;
/**
* Outbound Gateway for performing remote file operations via FTP/FTPS.
*
* @author Gary Russell
* @since 2.1
*/
@@ -38,7 +40,7 @@ public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway<FTPFil
}
@Override
protected boolean isDir(FTPFile file) {
protected boolean isDirectory(FTPFile file) {
return file.isDirectory();
}

View File

@@ -13,26 +13,30 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.integration.ftp.session;
import org.apache.commons.net.ftp.FTPFile;
import org.springframework.integration.file.remote.AbstractFileInfo;
import org.springframework.integration.file.remote.FileInfo;
import org.springframework.util.Assert;
/**
* A {@link FileInfo} implementation for FTP/FTPS.
*
* @author Gary Russell
* @since 2.1
*
*/
public class FtpFileInfo extends AbstractFileInfo<FTPFile> {
private final FTPFile ftpFile;
public FtpFileInfo(FTPFile ftpFile) {
Assert.notNull(ftpFile, "FTPFile must not be null");
this.ftpFile = ftpFile;
}
public boolean isDir() {
public boolean isDirectory() {
return this.ftpFile.isDirectory();
}