fis = new FileInputStream(dataFile);
upload(fis, remoteBucket, remotePath, remoteName, tags);
}
catch (Exception e)
{
throw new FSException(
"Failed to write local file: " + dataFile.getAbsolutePath()
+ " to remote bucket: " + remoteBucket
+ " path: " + remotePath
+ " with name: " + remoteName, e);
}