commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J-Pro <>
Subject [VFS] Why do I get "FileSystemException: Could not determine the type of file" ?
Date Fri, 17 Sep 2010 17:04:02 GMT
  Good afternoon, dear VFS gurus!

I am currently testing FTPS from vfs-2.0-snapshot and I've managed to 
successfully connect to FTPS server, but when I try to check if a file 
exists, I'm getting an exception with strange message:

    *org.apache.commons.vfs.FileSystemException: Could not determine the
    type of file*

My code for checking if the file exists is:

    FileObject dir = null;
    String fileName =
    // .... dir initialization
    FileObject neededFile = dir.resolveFile(fileName);
    return neededFile.exists();

I must say this code works perfect for FTP and SFTP. The problem appears 
only with FTPS.

Maybe I've forgot to do something(like enter in passive mode or 
something else), or is it a bug in this FTPS 

Please advise, it's very important for me.

Thank you very much in advance!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message