try {
String filePath = path.substring(exportEntry.getDirectory().length());
StringTokenizer tokenizer = new StringTokenizer(filePath, "/");
while (tokenizer.hasMoreElements()) {
String t = tokenizer.nextToken();
LookupResult lookup = nfsClient.lookup(tempFileHandle, t);
if (lookup.getFileAttribute().getType() == FileAttribute.FILE) {
fileHandle = lookup.getFileHandle();
fileAttribute = lookup.getFileAttribute();
break;
} else if (lookup.getFileAttribute().getType() == FileAttribute.DIRECTORY) {
tempFileHandle = lookup.getFileHandle();
} else {
throw new IOException("The path contains an unknow resource: " + t +
". It is not directory or file");
}
}