Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.8k views
in General by (560 points)
Most FTP API's that I've used in the past had the isDirectory(), isLink(), AND the isFile() methods. I see the first two, but not the third.

Can I make this assumption with this new method?:

public boolean isFile(FTPFile ftpFile)
{
if( ftpFile.isDir() || ftpFile.isLink())
return false;
else
return true;
}

1 Answer

0 votes
by (162k points)
Yes. Good idea, we might add isFile().

Most FTP API's that I've used in the past had the isDirectory(), isLink(), AND the isFile() methods. I see the first two, but not the third.

Can I make this assumption with this new method?:

public boolean isFile(FTPFile ftpFile)
{
if( ftpFile.isDir() || ftpFile.isLink())
return false;
else
return true;
}

Categories

...