super(launchSession, store);
}
public FileObject createVFSFileObject(String path, PasswordCredentials credentials) throws IOException {
try {
URI uri = getRootVFSURI();
if (credentials != null) {
uri.setUserinfo(DAVUtilities.encodeURIUserInfo(credentials.getUsername() + (credentials.getPassword() != null ? ":" + new String(credentials.getPassword()) : "")));
}
uri.setPath(uri.getPath() + (uri.getPath().endsWith("/") ? "" : "/") + DAVUtilities.encodePath(path));
FileObject fileObject = this.getStore().getRepository().getFileSystemManager().resolveFile(uri.toString());
return fileObject;
} catch (FileSystemException fse) {
if (fse.getCode().equals("vfs.provider.ftp/connect.error")) {
throw new DAVAuthenticationRequiredException(getMountString());
}