Package org.apache.hadoop.fs

Examples of org.apache.hadoop.fs.FileSystem.undelete()


          System.getProperty("user.name")));

      // temp directory automatically skips trash.
      createFile(fs, new Path("/tmp/testDelete"));
      TestCase.assertTrue(fs.delete(new Path("/tmp/testDelete"), false, false));
      TestCase.assertFalse(fs.undelete(new Path("/tmp/testDelete"),
          System.getProperty("user.name")));
    }
    finally {
      if (cluster != null) {cluster.shutdown();}
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.