*/
public static boolean moveToTrash(FileSystem fs, Path f, Configuration conf) throws IOException {
LOG.info("deleting " + f);
HadoopShims hadoopShim = ShimLoader.getHadoopShims();
if (hadoopShim.moveToAppropriateTrash(fs, f, conf)) {
LOG.info("Moved to trash: " + f);
return true;
}
boolean result = fs.delete(f, true);